feat(chalice): changed reset password logs
This commit is contained in:
parent
253fd29ad5
commit
e956d3132c
2 changed files with 2 additions and 4 deletions
|
|
@ -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."]}
|
||||
|
|
|
|||
|
|
@ -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."]}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue