]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/sessions_controller.rb
Merge remote-tracking branch 'upstream/pull/5312'
[rails.git] / app / controllers / sessions_controller.rb
index a3e6f42f03db4b172607bc26285d6c79c3b0ee8b..abbaf5e921e45aedf89e60d7057023b9a0374143 100644 (file)
@@ -20,7 +20,7 @@ class SessionsController < ApplicationController
   end
 
   def create
-    session[:remember_me] ||= params[:remember_me]
+    session[:remember_me] = params[:remember_me] == "yes"
 
     referer = safe_referer(params[:referer]) if params[:referer]