Fallback link in password recovery emails

This commit is contained in:
Quentin Gliech
2025-04-10 11:35:32 +02:00
parent 4175e2ac85
commit b3572801df
2 changed files with 12 additions and 3 deletions

View File

@@ -41,7 +41,12 @@ Please see LICENSE in the repository root for full details.
border-radius: 2rem; border-radius: 2rem;
text-decoration: none; text-decoration: none;
">{{ _("mas.emails.recovery.create_new_password") }}</a><br /> ">{{ _("mas.emails.recovery.create_new_password") }}</a><br />
<br /> <p style="font-size: 14px; font-size: 0.875rem;">
{{ _("mas.emails.recovery.fallback") }} {{ _("mas.emails.recovery.copy_link") }}
</p>
<p style="font-size: 14px; font-size: 0.875rem;">
<a href="{{ recovery_link }}" target="_blank">{{ recovery_link }}</a>
</p>
{{ _("mas.emails.recovery.you_can_ignore") }} {{ _("mas.emails.recovery.you_can_ignore") }}
</body> </body>
</html> </html>

View File

@@ -287,12 +287,16 @@
}, },
"copy_link": "Copy the following link and paste it into a browser to create a new password:", "copy_link": "Copy the following link and paste it into a browser to create a new password:",
"@copy_link": { "@copy_link": {
"context": "emails/recovery.txt:12:3-37" "context": "emails/recovery.html:45:49-83, emails/recovery.txt:12:3-37"
}, },
"create_new_password": "Create new password", "create_new_password": "Create new password",
"@create_new_password": { "@create_new_password": {
"context": "emails/recovery.html:43:9-53" "context": "emails/recovery.html:43:9-53"
}, },
"fallback": "The button doesn't work for you?",
"@fallback": {
"context": "emails/recovery.html:45:9-42"
},
"headline": "You requested a password reset for your %(server_name)s account.", "headline": "You requested a password reset for your %(server_name)s account.",
"@headline": { "@headline": {
"context": "emails/recovery.html:26:7-74, emails/recovery.txt:10:3-70" "context": "emails/recovery.html:26:7-74, emails/recovery.txt:10:3-70"
@@ -303,7 +307,7 @@
}, },
"you_can_ignore": "If you didn't ask for a new password, you can ignore this email. Your current password will continue to work.", "you_can_ignore": "If you didn't ask for a new password, you can ignore this email. Your current password will continue to work.",
"@you_can_ignore": { "@you_can_ignore": {
"context": "emails/recovery.html:45:7-46, emails/recovery.txt:16:3-42" "context": "emails/recovery.html:50:7-46, emails/recovery.txt:16:3-42"
} }
}, },
"verify": { "verify": {