]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/UserBundle/Resources/views/Authentication/form.html.twig
Merge remote-tracking branch 'origin/master' into 2.4
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / Resources / views / Authentication / form.html.twig
CommitLineData
a6b242a1 1{# Override `vendor/scheb/two-factor-bundle/Resources/views/Authentication/form.html.twig` #}
2db616b5
NL
2{% extends "WallabagUserBundle::layout.html.twig" %}
3
4{% block fos_user_content %}
a6b242a1 5<form class="form" action="{{ path("2fa_login_check") }}" method="post">
2db616b5
NL
6 <div class="card-content">
7 <div class="row">
8
9 {% for flashMessage in app.session.flashbag.get("two_factor") %}
10 <p class="error">{{ flashMessage|trans }}</p>
11 {% endfor %}
12
a6b242a1
JB
13 {# Authentication errors #}
14 {% if authenticationError %}
15 <p class="error">{{ authenticationError|trans(authenticationErrorData) }}</p>
16 {% endif %}
17
2db616b5
NL
18 <div class="input-field col s12">
19 <label for="_auth_code">{{ "scheb_two_factor.auth_code"|trans }}</label>
a6b242a1 20 <input id="_auth_code" type="text" autocomplete="off" name="{{ authCodeParameterName }}" />
2db616b5
NL
21 </div>
22
a6b242a1 23 {% if displayTrustedOption %}
2db616b5 24 <div class="input-field col s12">
a6b242a1 25 <input id="_trusted" type="checkbox" name="{{ trustedParameterName }}" />
2db616b5
NL
26 <label for="_trusted">{{ "scheb_two_factor.trusted"|trans }}</label>
27 </div>
28 {% endif %}
29 </div>
30 </div>
31 <div class="card-action center">
5ecdfcd0 32 <a href="{{ path('fos_user_security_logout') }}" class="waves-effect waves-light grey btn">{{ 'security.login.cancel'|trans }}</a>
2db616b5
NL
33 <button class="btn waves-effect waves-light" type="submit" name="send">
34 {{ "scheb_two_factor.login"|trans }}
5ecdfcd0 35 <i class="material-icons right">send</i>
2db616b5
NL
36 </button>
37 </div>
38</form>
39{% endblock %}