]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
add 'stay connected' checkbox
authorNicolas Lœuillet <nicolas.loeuillet@smile.fr>
Wed, 12 Aug 2015 10:27:12 +0000 (12:27 +0200)
committerNicolas Lœuillet <nicolas.loeuillet@smile.fr>
Wed, 12 Aug 2015 10:27:12 +0000 (12:27 +0200)
app/config/security.yml
src/Wallabag/CoreBundle/Resources/views/themes/material/Security/login.html.twig

index 37236d403a92d27e0d489be7db47310fb9966af5..2163389be44b49aba4a6384f899d1c6f1f839f30 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..26d039c70a3ea240c429e39d0ae5ef501d6f4f44 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">Keep me logged in</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 %}