]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #1323 from wallabag/v2-1302-checkbox
authorJeremy Benoist <j0k3r@users.noreply.github.com>
Wed, 12 Aug 2015 11:23:52 +0000 (13:23 +0200)
committerJeremy Benoist <j0k3r@users.noreply.github.com>
Wed, 12 Aug 2015 11:23:52 +0000 (13:23 +0200)
fix #1302: add 'stay connected' checkbox

app/config/security.yml
src/Wallabag/CoreBundle/Resources/views/themes/material/Security/login.html.twig

index acc86984703aed69afcff7334f28e894bf2f9fe8..b9c4cbef2d55729ab3139da63756329a71b3b2e6 100644 (file)
@@ -51,6 +51,12 @@ security:
                 csrf_parameter:                 _csrf_token
                 intention:                      authenticate
 
+            remember_me:
+                key:      "%secret%"
+                lifetime: 31536000
+                path:     /
+                domain:   ~
+
             logout:
                 path:   /logout
                 target: /
index 8f60fbe2440cd794fa53628493e1b00108420a0b..73abc3f88e0e6624886b24b706ea2d1967fefd09 100644 (file)
                             <input type="password" id="password" name="_password" />
                         </div>
 
+                        <div class="input-field s12">
+                            <input type="checkbox" id="remember_me" name="_remember_me" checked />
+                            <label for="remember_me">{% trans %}Keep me logged in{% endtrans %}</label>
+                        </div>
+
                     </div>
                     <div class="card-action">
                         <button class="btn waves-effect waves-light" type="submit" name="send">
@@ -55,4 +60,4 @@
 {% endblock %}
 
 {% block footer %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}