fix: update response message for non-existent user during registration process
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m42s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m42s
This commit is contained in:
+2
-6
@@ -81,13 +81,9 @@ public class VerifyOtpTokenCommandHandler : IRequestHandler<VerifyOtpTokenComman
|
||||
if (isMasterCode)
|
||||
return new VerifyOtpTokenResponseDto { Success = false, Message = "کاربری با این شماره موبایل وجود ندارد." };
|
||||
|
||||
// لاگین با شمارهای که ثبتنام نشده → ثبتنام مجاز نیست
|
||||
if (purpose == "login")
|
||||
return new VerifyOtpTokenResponseDto { Success = false, Message = "کاربری با این شماره موبایل وجود ندارد." };
|
||||
|
||||
// کد معرف الزامی است
|
||||
// کد معرف ارائه نشده → ثبتنام ممکن نیست (ادمین هرگز referral نمیفرستد، مشتری جدید هم اگر نفرستاده یعنی اشتباه وارد شده)
|
||||
if (string.IsNullOrWhiteSpace(request.ParentReferralCode))
|
||||
return new VerifyOtpTokenResponseDto { Success = false, Message = "کد معرف الزامی است." };
|
||||
return new VerifyOtpTokenResponseDto { Success = false, Message = "کاربری با این شماره موبایل وجود ندارد." };
|
||||
|
||||
// بررسی وجود معرف و فعال بودن عضویت باشگاه
|
||||
var parent = await _context.Users
|
||||
|
||||
Reference in New Issue
Block a user