diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-01-31 15:14:10 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2015-01-31 15:14:10 +0100 |
commit | c3235553ddc2bb5965f6fe00e750cfe4aac9ccdf (patch) | |
tree | 271305a039d31059c7af8be220da08b9331baeec /src/Wallabag/CoreBundle/Resources/views/Security/login.html.twig | |
parent | 71691fe44a7b2a80f3b9d96d54720cce7994ad08 (diff) | |
download | wallabag-c3235553ddc2bb5965f6fe00e750cfe4aac9ccdf.tar.gz wallabag-c3235553ddc2bb5965f6fe00e750cfe4aac9ccdf.tar.zst wallabag-c3235553ddc2bb5965f6fe00e750cfe4aac9ccdf.zip |
first implementation of security
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/Security/login.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/Security/login.html.twig | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/Security/login.html.twig b/src/Wallabag/CoreBundle/Resources/views/Security/login.html.twig new file mode 100644 index 00000000..2437e3b0 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/Security/login.html.twig | |||
@@ -0,0 +1,32 @@ | |||
1 | {% extends "WallabagCoreBundle::layout-login.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}login to your wallabag{% endtrans %}{% endblock %} | ||
4 | {% block content %} | ||
5 | {% if error %} | ||
6 | <div>{{ error.message }}</div> | ||
7 | {% endif %} | ||
8 | |||
9 | <form action="{{ path('login_check') }}" method="post" name="loginform"> | ||
10 | <fieldset class="w500p center"> | ||
11 | <h2 class="mbs txtcenter">{% trans %}Login to wallabag{% endtrans %}</h2> | ||
12 | |||
13 | <div class="row"> | ||
14 | <label class="col w150p" for="username">{% trans %}Username{% endtrans %}</label> | ||
15 | <input type="text" id="username" name="_username" value="{{ last_username }}" /> | ||
16 | </div> | ||
17 | |||
18 | <div class="row"> | ||
19 | <label class="col w150p" for="password">{% trans %}Password{% endtrans %}</label> | ||
20 | <input type="password" id="password" name="_password" /> | ||
21 | </div> | ||
22 | {# | ||
23 | Si vous voulez contrôler l'URL vers laquelle l'utilisateur est redirigé en cas de succès | ||
24 | (plus de détails ci-dessous) | ||
25 | <input type="hidden" name="_target_path" value="/account" /> | ||
26 | #} | ||
27 | <div class="row mts txtcenter"> | ||
28 | <button type="submit">login</button> | ||
29 | </div> | ||
30 | </fieldset> | ||
31 | </form> | ||
32 | {% endblock %} | ||