diff --git a/mafiasi/registration/templates/registration/email_exists.txt b/mafiasi/registration/templates/registration/email_exists.txt index 688f5c4..5609dcd 100644 --- a/mafiasi/registration/templates/registration/email_exists.txt +++ b/mafiasi/registration/templates/registration/email_exists.txt @@ -1,7 +1,7 @@ -{% extends "base_email.html" %}{% load i18n %}{% autoescape off %} +{% extends "base_email.html" %}{% load i18n %} {% block content_de %}Hallo, du hast versucht, einen Account zu erstellen, den es schon gibt. Falls du dein Passwort vergessen hast, kannst du es hier zurücksetzen: -{{ password_reset_url }} +{{ password_reset_url|safe }} Dein Nutzername ist {{ username }}. Viele Grüße, @@ -9,9 +9,9 @@ Deine Server-AG {% endblock %} {% block content_en %}Hello, you tried to create an account that already exists. If you forgot your password, you can reset it here: -{{ password_reset_url }} +{{ password_reset_url|safe }} Your username is {{ username }}. Best regards, Your Server-AG -{% endblock %}{% endautoescape %} +{% endblock %} diff --git a/mafiasi/settings.py b/mafiasi/settings.py index 4c12413..49042c9 100644 --- a/mafiasi/settings.py +++ b/mafiasi/settings.py @@ -32,7 +32,7 @@ ) PASSWORD_RESET_URL = env.str( "MAFIASI_PASSWORD_RESET_URL", - default="https://identity.mafiasi.de/realms/mafiasi/login-actions/reset-credentials?client_id=mafiasi-dashboard", + default="https://identity.mafiasi.de/realms/mafiasi/login-actions/reset-credentials?client_id=mafiasi-dashboard&redirect_uri=https%3A%2F%2Fmafiasi.de", ) OPENID_SYNC_SUPERUSER = env.bool("MAFIASI_OPENID_SYNC_SUPERUSER", default=True)