feat(chalice): changed reset password logs

This commit is contained in:
Taha Yassine Kraiem 2022-09-19 15:13:42 +01:00
parent 253fd29ad5
commit e956d3132c
2 changed files with 2 additions and 4 deletions

View file

@ -4,8 +4,7 @@ from chalicelib.utils import email_helper, captcha, helper
def reset(data: schemas.ForgetPasswordPayloadSchema):
print("====================== reset password ===============")
print(data)
print(f"====================== reset password {data.email}")
if helper.allow_captcha() and not captcha.is_valid(data.g_recaptcha_response):
print("error: Invalid captcha.")
return {"errors": ["Invalid captcha."]}

View file

@ -4,8 +4,7 @@ from chalicelib.utils import email_helper, captcha, helper
def reset(data: schemas.ForgetPasswordPayloadSchema):
print("====================== reset password ===============")
print(data)
print(f"====================== reset password {data.email}")
if helper.allow_captcha() and not captcha.is_valid(data.g_recaptcha_response):
print("error: Invalid captcha.")
return {"errors": ["Invalid captcha."]}