Skip to content

Commit

Permalink
Fix forgot password redirect link
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Oct 4, 2023
1 parent db95334 commit 9421636
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mafiasi/registration/templates/registration/email_exists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% 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,
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 %}
2 changes: 1 addition & 1 deletion mafiasi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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%2Fdashboard%2F",
)

OPENID_SYNC_SUPERUSER = env.bool("MAFIASI_OPENID_SYNC_SUPERUSER", default=True)
Expand Down

0 comments on commit 9421636

Please sign in to comment.