From c788d569c58576fd8227f5a33b895ab8131eb9dc Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 9 Jul 2022 12:50:54 +0200 Subject: fix CSRF token mismatch on password reset forms --- fietsboek/templates/login.jinja2 | 3 +++ fietsboek/templates/password_reset.jinja2 | 2 ++ fietsboek/templates/request_password.jinja2 | 2 ++ 3 files changed, 7 insertions(+) diff --git a/fietsboek/templates/login.jinja2 b/fietsboek/templates/login.jinja2 index 18b12e7..86e9adb 100644 --- a/fietsboek/templates/login.jinja2 +++ b/fietsboek/templates/login.jinja2 @@ -1,5 +1,7 @@ {% extends "layout.jinja2" %} +{% import "util.jinja2" as util with context %} + {% block content %}

{{ _("page.login.title") }}

@@ -20,6 +22,7 @@
+ {{ util.hidden_csrf_input() }}
diff --git a/fietsboek/templates/password_reset.jinja2 b/fietsboek/templates/password_reset.jinja2 index 7b89762..dfcca08 100644 --- a/fietsboek/templates/password_reset.jinja2 +++ b/fietsboek/templates/password_reset.jinja2 @@ -1,4 +1,5 @@ {% extends "layout.jinja2" %} +{% import "util.jinja2" as util with context %} {% block content %}

{{ _("page.password_reset.title") }}

@@ -25,6 +26,7 @@
+ {{ util.hidden_csrf_input() }} diff --git a/fietsboek/templates/request_password.jinja2 b/fietsboek/templates/request_password.jinja2 index 47710e3..adb4193 100644 --- a/fietsboek/templates/request_password.jinja2 +++ b/fietsboek/templates/request_password.jinja2 @@ -1,4 +1,5 @@ {% extends "layout.jinja2" %} +{% import "util.jinja2" as util with context %} {% block content %}

{{ _("page.request_password.title") }}

@@ -11,6 +12,7 @@
+ {{ util.hidden_csrf_input() }}
-- cgit v1.2.3