Skip to content

Commit 0643133

Browse files
committed
Fallback link in password recovery emails
1 parent e91ff20 commit 0643133

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

templates/emails/recovery.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@
4141
border-radius: 2rem;
4242
text-decoration: none;
4343
">{{ _("mas.emails.recovery.create_new_password") }}</a><br />
44-
<br />
44+
<p style="font-size: 14px; font-size: 0.875rem;">
45+
{{ _("mas.emails.recovery.fallback") }} {{ _("mas.emails.recovery.copy_link") }}
46+
</p>
47+
<p style="font-size: 14px; font-size: 0.875rem;">
48+
<a href="{{ recovery_link }}" target="_blank">{{ recovery_link }}</a>
49+
</p>
4550
{{ _("mas.emails.recovery.you_can_ignore") }}
4651
</body>
4752
</html>

translations/en.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,16 @@
287287
},
288288
"copy_link": "Copy the following link and paste it into a browser to create a new password:",
289289
"@copy_link": {
290-
"context": "emails/recovery.txt:12:3-37"
290+
"context": "emails/recovery.html:45:49-83, emails/recovery.txt:12:3-37"
291291
},
292292
"create_new_password": "Create new password",
293293
"@create_new_password": {
294294
"context": "emails/recovery.html:43:9-53"
295295
},
296+
"fallback": "The button doesn't work for you?",
297+
"@fallback": {
298+
"context": "emails/recovery.html:45:9-42"
299+
},
296300
"headline": "You requested a password reset for your %(server_name)s account.",
297301
"@headline": {
298302
"context": "emails/recovery.html:26:7-74, emails/recovery.txt:10:3-70"
@@ -303,7 +307,7 @@
303307
},
304308
"you_can_ignore": "If you didn't ask for a new password, you can ignore this email. Your current password will continue to work.",
305309
"@you_can_ignore": {
306-
"context": "emails/recovery.html:45:7-46, emails/recovery.txt:16:3-42"
310+
"context": "emails/recovery.html:50:7-46, emails/recovery.txt:16:3-42"
307311
}
308312
},
309313
"verify": {

0 commit comments

Comments
 (0)