From 89a138f51d3c0ac98eca5a05f6b117db6142c4cd Mon Sep 17 00:00:00 2001
From: weeman <weeman@frankfurt.ccc.de>
Date: Sat, 21 Dec 2024 21:21:38 +0100
Subject: [PATCH] =?UTF-8?q?Repariere=20Benutzernamenvariable=20in=20der=20?=
 =?UTF-8?q?Passwort=20zur=C3=BCcksetzen=20Mail?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/core/locale/de/LC_MESSAGES/django.po                      | 4 ++--
 src/core/locale/en/LC_MESSAGES/django.po                      | 2 +-
 .../templates/registration/core_password_reset_email.html     | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/core/locale/de/LC_MESSAGES/django.po b/src/core/locale/de/LC_MESSAGES/django.po
index fc92843e2..1570d304c 100644
--- a/src/core/locale/de/LC_MESSAGES/django.po
+++ b/src/core/locale/de/LC_MESSAGES/django.po
@@ -2421,14 +2421,14 @@ msgstr ""
 #, python-format
 msgid ""
 "\n"
-"Your username, in case you’ve forgotten: %(user.username)s\n"
+"Your username, in case you’ve forgotten: %(username)s\n"
 "\n"
 "If you have not requested a new password or didn't expect this mail please simply ignore it.\n"
 "\n"
 "Looking forward to having you at the event!\n"
 msgstr ""
 "\n"
-"Dein Benutzername, falls du ihn vergessen hast: %(user.username)s\n"
+"Dein Benutzername, falls du ihn vergessen hast: %(username)s\n"
 "\n"
 "Falls du kein neues Passwort angefordert hast, ignoriere diese E-Mail bitte einfach.\n"
 "\n"
diff --git a/src/core/locale/en/LC_MESSAGES/django.po b/src/core/locale/en/LC_MESSAGES/django.po
index dfb63b7f4..8370a3dbb 100644
--- a/src/core/locale/en/LC_MESSAGES/django.po
+++ b/src/core/locale/en/LC_MESSAGES/django.po
@@ -2416,7 +2416,7 @@ msgstr ""
 #, python-format
 msgid ""
 "\n"
-"Your username, in case you’ve forgotten: %(user.username)s\n"
+"Your username, in case you’ve forgotten: %(username)s\n"
 "\n"
 "If you have not requested a new password or didn't expect this mail please simply ignore it.\n"
 "\n"
diff --git a/src/core/templates/registration/core_password_reset_email.html b/src/core/templates/registration/core_password_reset_email.html
index d0f63c7fd..b3f8b5e8f 100644
--- a/src/core/templates/registration/core_password_reset_email.html
+++ b/src/core/templates/registration/core_password_reset_email.html
@@ -9,8 +9,8 @@ Please use the following link and choose a new password:
   {% block reset_link %}
     {% hub_absolute 'plainui:password_reset_confirm' uidb64=uid token=token %}
   {% endblock reset_link %}
-  {% blocktranslate %}
-Your username, in case you’ve forgotten: {{ user.username}}
+  {% blocktranslate with username=user.username %}
+Your username, in case you’ve forgotten: {{ username }}
 
 If you have not requested a new password or didn't expect this mail please simply ignore it.
 
-- 
GitLab