Skip to content

Commit 074f219

Browse files
Fixed and validated password reset flow
1 parent 1aa0eff commit 074f219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def send_reset_email(email: str, session: Session):
286286
"from": "[email protected]",
287287
"to": [email],
288288
"subject": "Password Reset Request",
289-
"html": f"<p>Click <a href='{os.getenv('BASE_URL')}/reset_password?email={email}&token={token}'>here</a> to reset your password.</p>",
289+
"html": f"<p>Click <a href='{os.getenv('BASE_URL')}/auth/reset_password?email={email}&token={token}'>here</a> to reset your password.</p>",
290290
}
291291

292292
sent_email: resend.Email = resend.Emails.send(params)

0 commit comments

Comments
 (0)