From febe78432260d16371446007e17bcd4f1f1339d3 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 11 Feb 2025 16:04:57 +0100 Subject: [PATCH] change(api): reset password error message --- api/chalicelib/core/reset_password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/reset_password.py b/api/chalicelib/core/reset_password.py index 5c9a82c52..cd2321115 100644 --- a/api/chalicelib/core/reset_password.py +++ b/api/chalicelib/core/reset_password.py @@ -14,7 +14,7 @@ def reset(data: schemas.ForgetPasswordPayloadSchema, background_tasks: Backgroun if helper.allow_captcha() and not captcha.is_valid(data.g_recaptcha_response): return {"errors": ["Invalid captcha."]} if not smtp.has_smtp(): - return {"errors": ["no SMTP configuration found, you can ask your admin to reset your password"]} + return {"errors": ["Email delivery failed due to invalid SMTP configuration. Please contact your admin."]} a_user = users.get_by_email_only(data.email) if a_user: invitation_link = users.generate_new_invitation(user_id=a_user["userId"])