]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/login.html.erb
Preserve username and "remember me" when login fails
[rails.git] / app / views / user / login.html.erb
index 3c9557ae0cb3e09d3683f2829c541eec7a800acc..e6efdc5ce72460a2bd9421efea843fb6544b94a1 100644 (file)
@@ -33,7 +33,7 @@
       </fieldset>
 
       <fieldset>
-        <%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %>
+        <%= check_box_tag "remember_me", "yes", params[:remember_me] == "yes", :tabindex => 3 %>
         <label for="remember_me" class="standard-label">
           <%= t 'user.login.remember' %>
         </label>