fix: [login] flash messages

pull/670/head
David Cruciani 2024-06-28 11:32:55 +02:00
parent 35aa27ee51
commit 616aeca469
No known key found for this signature in database
GPG Key ID: 8690CDE1E3994B9B
1 changed files with 27 additions and 43 deletions

View File

@ -7,7 +7,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Flowintel-cm</title>
<title>Misp-modules</title>
<script src="{{ url_for('static',filename='js/popper.min.js') }}"></script>
<script src="{{ url_for('static',filename='bootstrap-5.3.0/js/bootstrap.min.js') }}"></script>
<script src="{{ url_for('static',filename='js/jquery.min.js') }}"></script>
@ -20,28 +20,7 @@
<link rel= "stylesheet" type= "text/css" href= "{{ url_for('static',filename='css/jquery-ui.css') }}">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
html, body {
height: 100%;
}
body {
display: flex;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
@ -49,7 +28,10 @@
width: 100%;
max-width: 330px;
padding: 15px;
margin: auto;
top: 25%;
left: 40%;
position: absolute;
}
.form-signin .checkbox {
@ -76,15 +58,17 @@
</head>
<body>
<main class="form-signin">
<main >
{% include 'macros/_flashes.html' %}
<div style="margin-top: 50px;">
{% 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 action="" method="post">
</div>
<form action="" method="post" class="form-signin">
{{ form.hidden_tag() }}
<div class="mb-3">
{{form.password.label}}: