From be3b8f77b38ebe464b05d96c67abe5963a69a768 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Wed, 21 Aug 2024 17:01:14 +0100 Subject: [PATCH] feat: Add "lost username" template --- locales/en.json | 7 ++++ src/templates.rs | 2 + src/templates/lost_username.rs | 72 ++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 src/templates/lost_username.rs diff --git a/locales/en.json b/locales/en.json index 0279d85..504a68d 100644 --- a/locales/en.json +++ b/locales/en.json @@ -36,5 +36,12 @@ "action_password": "You can then request a password reset, if needed, from the link below:", "in_error": "If you didn't initiate this request and feel that you've received this email in error, don't worry, you don't need to take any further action and can safely disregard this email.", "second_account": "If you have a specific reason why you need a second account (for example, you want to run a bot and have notes also reach you at this address) please drop us a line. We will look into your specific case." + }, + "lost_username": { + "title": "Lost username", + "info": "Someone, probably you, asked to look up the username of the MusicBrainz account associated with this email address.", + "username_is": "Your MusicBrainz username is: { user_name }", + "reset_password": "If you have also forgotten your password, use this username and your email address to reset your password here:", + "in_error": "If you didn't initiate this request and feel that you've received this email in error, don't worry, you don't need to take any further action and can safely disregard this email." } } diff --git a/src/templates.rs b/src/templates.rs index 92ad585..0339a99 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -7,6 +7,7 @@ mod basic; mod edit_note; mod editor_message; mod email_in_use; +mod lost_username; mod reset_password; mod subscription; mod verify_email; @@ -27,6 +28,7 @@ pub fn get(template_id: &str) -> Option