mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 16:44:54 +00:00
otp, verify otp and login bug resolved
This commit is contained in:
@ -23,15 +23,15 @@ ERROR_CODE_REQUIRED = {
|
||||
|
||||
# Error code
|
||||
ERROR_CODE = {
|
||||
"2000": "Email not found.",
|
||||
"2000": "Invalid email address. Please enter a registered email.",
|
||||
"2001": "This is your existing password. Please choose other one",
|
||||
"2002": "Invalid login credentials.",
|
||||
"2002": "Invalid username or password.",
|
||||
"2003": "An account already exists with this email address.",
|
||||
"2004": "User not found.",
|
||||
"2005": "Your account has been activated.",
|
||||
"2006": "Your account is not activated.",
|
||||
"2007": "Your account already activated.",
|
||||
"2008": "Invalid OTP.",
|
||||
"2008": "The OTP entered is not correct.",
|
||||
"2009": "The user provided cannot be found or the reset password token has become invalid/timed out.",
|
||||
"2010": "Invalid Link.",
|
||||
"2011": "Your profile has not been completed yet.",
|
||||
@ -54,7 +54,7 @@ ERROR_CODE = {
|
||||
"2026": "New password should not same as old password",
|
||||
"2027": "data should contain `identityToken`",
|
||||
"2028": "You are not authorized person to sign up on this platform",
|
||||
"2029": "Validity of otp verification is expired",
|
||||
"2029": "Validity of otp verification has expired. Please request a new one.",
|
||||
"2030": "Use correct user type and token",
|
||||
# invalid password
|
||||
"2031": "Invalid password",
|
||||
@ -111,7 +111,7 @@ SUCCESS_CODE = {
|
||||
# Success code for link verified
|
||||
"3005": "Your account is deleted successfully.",
|
||||
# Success code for password reset
|
||||
"3006": "Your password has been reset successfully.",
|
||||
"3006": "Password reset successful. You can now log in with your new password.",
|
||||
# Success code for password update
|
||||
"3007": "Your password has been changed successfully.",
|
||||
# Success code for valid link
|
||||
@ -124,8 +124,8 @@ SUCCESS_CODE = {
|
||||
"3012": "Phone OTP Verified successfully",
|
||||
"3013": "Valid Guardian code",
|
||||
"3014": "Password has been updated successfully.",
|
||||
"3015": "Verification code sent on your email.",
|
||||
"3016": "Send otp on your Email successfully",
|
||||
"3015": "Verification code has been sent on your email.",
|
||||
"3016": "An OTP has been sent on your email.",
|
||||
"3017": "Profile image update successfully",
|
||||
"3018": "Task created successfully",
|
||||
"3019": "Support Email sent successfully",
|
||||
|
||||
Reference in New Issue
Block a user