X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a16b45eb6a26ad7738e5d919faaf515708507cbf..82cf356d85154057f840c1b3b413f49a65599690:/app/controllers/user_controller.rb?ds=inline diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 7b3b596df..a59190697 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -624,7 +624,7 @@ private cookies.permanent["_osm_username"] = user.display_name session[:user] = user.id - session_expires_after 1.month if session[:remember_me] + session_expires_after 28.days if session[:remember_me] target = session[:referer] || url_for(:controller => :site, :action => :index) @@ -663,6 +663,8 @@ private if user.save set_locale + cookies.permanent["_osm_username"] = user.display_name + if user.new_email.blank? flash.now[:notice] = t 'user.account.flash update success' else