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)
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