From 616aeca4690865e21c520fe4a15959a27a96ff6c Mon Sep 17 00:00:00 2001 From: David Cruciani Date: Fri, 28 Jun 2024 11:32:55 +0200 Subject: [PATCH] fix: [login] flash messages --- website/app/templates/account/login.html | 70 +++++++++--------------- 1 file changed, 27 insertions(+), 43 deletions(-) diff --git a/website/app/templates/account/login.html b/website/app/templates/account/login.html index 48817274..921e9fd2 100644 --- a/website/app/templates/account/login.html +++ b/website/app/templates/account/login.html @@ -7,7 +7,7 @@ - Flowintel-cm + Misp-modules @@ -20,71 +20,55 @@ -
+
{% include 'macros/_flashes.html' %} - {% set flashes = { - 'error': get_flashed_messages(category_filter=['form-error']), - 'warning': get_flashed_messages(category_filter=['form-check-email']), - 'info': get_flashed_messages(category_filter=['form-info']), - 'success': get_flashed_messages(category_filter=['form-success']) - } %} -
+
+ {% set flashes = { + 'error': get_flashed_messages(category_filter=['form-error']), + 'warning': get_flashed_messages(category_filter=['form-check-email']), + 'info': get_flashed_messages(category_filter=['form-info']), + 'success': get_flashed_messages(category_filter=['form-success']) + } %} +
+ {{ form.hidden_tag() }}
{{form.password.label}}: