From 9a6fbced15a7194e44f2a70f7f7523e3596383d1 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Wed, 7 Jan 2026 15:28:07 -0500 Subject: [PATCH] added password reset --- api/auth_api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/auth_api.py b/api/auth_api.py index 8bd3283..9af136e 100644 --- a/api/auth_api.py +++ b/api/auth_api.py @@ -25,20 +25,22 @@ RESET_PASSWORD_TOKEN_EXPIRY_MINUTES = 10 def send_verification_email(to_email, token): verify_url = f"{current_app.config['FRONTEND_URL']}/auth/verify?token={token}" + html_body = f'Click here to verify your account.' msg = Message( subject="Verify your account", recipients=[to_email], - body=f"Click to verify your account: {verify_url}", + html=html_body, sender=current_app.config['MAIL_DEFAULT_SENDER'] ) mail.send(msg) def send_reset_password_email(to_email, token): reset_url = f"{current_app.config['FRONTEND_URL']}/auth/reset-password?token={token}" + html_body = f'Click here to reset your password.' msg = Message( subject="Reset your password", recipients=[to_email], - body=f"Click to reset your password: {reset_url}", + html=html_body, sender=current_app.config['MAIL_DEFAULT_SENDER'] ) mail.send(msg)