Supprime message sur page login

This commit is contained in:
Emmanuel Viennet 2023-03-20 11:46:32 +01:00
parent cbe039ff75
commit f2de6ab80c
2 changed files with 0 additions and 6 deletions

View File

@ -47,12 +47,10 @@ def _login_form():
current_app.logger.info("login: success (%s)", form.user_name.data) current_app.logger.info("login: success (%s)", form.user_name.data)
return form.redirect("scodoc.index") return form.redirect("scodoc.index")
message = request.args.get("message", "")
return render_template( return render_template(
"auth/login.j2", "auth/login.j2",
title=_("Sign In"), title=_("Sign In"),
form=form, form=form,
message=message,
is_cas_enabled=ScoDocSiteConfig.is_cas_enabled(), is_cas_enabled=ScoDocSiteConfig.is_cas_enabled(),
) )

View File

@ -4,10 +4,6 @@
{% block app_content %} {% block app_content %}
{% if message %}
<div class="alert alert-danger" role="alert">{{ message }}</div>
{% endif %}
<h1>Connexion</h1> <h1>Connexion</h1>
<div class="row"> <div class="row">