Updated error msg in login

This commit is contained in:
bobbyvish
2024-03-11 15:34:47 +05:30
parent d12004612a
commit 2a0bb98bd3
3 changed files with 10 additions and 5 deletions

View File

@@ -175,7 +175,7 @@ def authticate_with_otp_and_passsword(principal: IAmPrincipal, otp=None, passwor
print(password)
if not principal.check_password(password):
return ApiResponse.error(
message=constants.INVALID_PASSWORD, errors=constants.INVALID_PASSWORD
message=constants.INCORRECT_CREDENTIALS, errors=constants.INCORRECT_CREDENTIALS
)
print("after passsowrd", password)