From e956d3132c4dd6d5888aaf590e6fa666c79b5ea0 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Mon, 19 Sep 2022 15:13:42 +0100 Subject: [PATCH] feat(chalice): changed reset password logs --- api/chalicelib/core/reset_password.py | 3 +-- ee/api/chalicelib/core/reset_password.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/chalicelib/core/reset_password.py b/api/chalicelib/core/reset_password.py index c15a4639b..2026cd829 100644 --- a/api/chalicelib/core/reset_password.py +++ b/api/chalicelib/core/reset_password.py @@ -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."]} diff --git a/ee/api/chalicelib/core/reset_password.py b/ee/api/chalicelib/core/reset_password.py index bb83cfa3a..6f1af14b6 100644 --- a/ee/api/chalicelib/core/reset_password.py +++ b/ee/api/chalicelib/core/reset_password.py @@ -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."]}