Skip to content

Commit 3ad24d3

Browse files
committed
style(email): fix line too long in template
1 parent 8bb4aa7 commit 3ad24d3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

backend/core/email.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ def send_recovery_email(to_email: str, reset_token: str):
2323
reset_link = f"{frontend_url}/reset-password?token={reset_token}"
2424

2525
subject = "TraderCopilot - Reset Your Password"
26+
btn_style = (
27+
"background:#2563eb;color:white;padding:10px 20px;"
28+
"text-decoration:none;border-radius:5px;"
29+
)
30+
2631
body = f"""
2732
<h2>Password Reset Request</h2>
2833
<p>We received a request to reset your password for TraderCopilot.</p>
2934
<p>Click the link below to proceed:</p>
3035
<p>
31-
<a href="{reset_link}" style="background:#2563eb;color:white;padding:10px 20px;text-decoration:none;border-radius:5px;">
36+
<a href="{reset_link}" style="{btn_style}">
3237
Reset Password
3338
</a>
3439
</p>

0 commit comments

Comments
 (0)