From de3d3dd00c96e2d2af9c6ac30301b69a3f87f2b7 Mon Sep 17 00:00:00 2001 From: ben8 Date: Sat, 3 May 2025 17:20:10 +0200 Subject: [PATCH] =?UTF-8?q?Hinweis,=20wenn=20Url=20nicht=20mehr=20g=C3=BCl?= =?UTF-8?q?tig!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- django/accounts/views.py | 5 +++++ django/templates/registration/password_reset_confirm.html | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/django/accounts/views.py b/django/accounts/views.py index fc44518..93e0bf8 100644 --- a/django/accounts/views.py +++ b/django/accounts/views.py @@ -6,11 +6,16 @@ from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth import update_session_auth_hash from django.contrib import messages from django.contrib.auth import logout + + + # Create your views here. @login_required def home(request): return render(request, 'accounts/home.html') + + def register(response): if response.method == "POST": form = RegisterForm(response.POST) diff --git a/django/templates/registration/password_reset_confirm.html b/django/templates/registration/password_reset_confirm.html index 8f383ce..a78d97f 100644 --- a/django/templates/registration/password_reset_confirm.html +++ b/django/templates/registration/password_reset_confirm.html @@ -5,6 +5,7 @@

Passwort zurücksetzen

+ {% if validlink %}
{% if form.errors %}
@@ -31,7 +32,11 @@ - + {% else %} + Dieser Link ist leider nicht mehr gültig oder abgelaufen. Bitte versuchen Sie es erneut: + + {% endif %} +
{% endblock %} \ No newline at end of file