Skip to content

Commit

Permalink
Remove anchor links from mails
Browse files Browse the repository at this point in the history
  • Loading branch information
Portals committed Jun 20, 2024
1 parent 7125eaa commit 14b9801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ private void sendEmail(Cid cid, UserActivationToken userActivationToken) {
String resetUrl = baseUrl + "/register?token=" + userActivationToken.value();
String message =
"""
Follow this link to finish up creating your account:
<a href="%s">%s</a>
Follow the link to finish up creating your account.
The link is valid for 15 minutes.
%s
"""
.formatted(resetUrl, resetUrl);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ private void sendPasswordResetTokenMail(Email email, PasswordResetToken token) {
String message =
"""
A password reset have been requested for this account, if you have not requested this mail, feel free to ignore it.
Click here to reset password: <a href="%s">%s</a>
The link is valid for 15 minutes.
The link is valid for 15 minutes. Click here to reset password:
%s
"""
.formatted(resetUrl, resetUrl);

Expand Down

0 comments on commit 14b9801

Please sign in to comment.