environnement complet autonome, révision complete de la méthode, ajout de configuration
Some checks failed
Cadoles/hydra-sql/pipeline/head There was a failure building this commit
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2022-12-09 17:31:07 +01:00
parent b451566452
commit 6fc004a549
110 changed files with 1829 additions and 372 deletions

View File

@ -30,25 +30,39 @@
{% endblock %}
{% block body %}
<div class="wrapper">
{{ form_start(form)}}
<div class="mb-3">
{{ form_row(form.email) }}
{% if error_mail is defined %}
<div class="form-text form-error">{{ error_mail }}</div>
{% endif %}
</div>
<div class="mb-3">
{{ form_row(form.password) }}
{% if error_password is defined %}
<div class="form-text form-error">{{ error_password }}</div>
<div class="login-wrapper">
<div class="login">
<form method="post">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.login }}
</div>
{% endif %}
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label for="inputEmail">Email</label>
<input type="email" value="{{ last_username }}" name="login" id="inputEmail" class="form-control" required autofocus>
<label for="inputPassword">Password</label>
<input type="password" name="password" id="inputPassword" class="form-control" required>
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
<!-- <div class="checkbox mb-3">
<label>
<input type="checkbox" name="_remember_me"> Remember me
</label>
</div> -->
<button class="btn btn-lg btn-primary" type="submit">
Sign in
</button>
</form>
</div>
<div class="mb-3 form-check">
{{ form_row(form.rememberMe) }}
</div>
<button type="submit" class="btn btn-success">valider</button>
{{ form_end(form)}}
</div>
{% endblock %}