From 9527a281ff29b8c936cac2bc7db579531864eeb2 Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 4 Aug 2024 13:10:14 +0200 Subject: [PATCH] feat: Use card style for login and password reset form --- src/templates/registration/login.html | 15 +++------------ .../registration/password_reset_form.html | 2 +- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/templates/registration/login.html b/src/templates/registration/login.html index 5279484..c27dbf3 100644 --- a/src/templates/registration/login.html +++ b/src/templates/registration/login.html @@ -15,19 +15,10 @@ {% endif %} {% if not user.is_authenticated %} -
+ {% csrf_token %} - - - - - - - - - -
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
- + {{ form.as_p }} +
diff --git a/src/templates/registration/password_reset_form.html b/src/templates/registration/password_reset_form.html index 6891456..fe41b80 100644 --- a/src/templates/registration/password_reset_form.html +++ b/src/templates/registration/password_reset_form.html @@ -2,7 +2,7 @@ {% load i18n %} {% block content %} -
+ {% csrf_token %} {% if form.email.errors %} {{ form.email.errors }}