fix reset password

This commit is contained in:
tcprod
2026-02-08 02:56:04 +01:00
committed by David Rodenkirchen
parent 24866966f4
commit 5a45af4465
5 changed files with 20 additions and 13 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class ForgotPasswordPage(Component):
user = await user_service.get_user(self.email_input.text.strip())
if user is not None:
new_password = "".join(choices(user_service.ALLOWED_USER_NAME_SYMBOLS, k=16))
user.user_password = sha256(new_password.encode(encoding="utf-8")).hexdigest()
user.user_fallback_password = sha256(new_password.encode(encoding="utf-8")).hexdigest()
await user_service.update_user(user)
await mailing_service.send_email(
subject=f"Dein neues Passwort für {lan_info.name}",