Update the username cookie when the display name is changed

This commit is contained in:
Tom Hughes 2012-03-03 00:49:03 +00:00
parent 5564bcabbf
commit e7a0302e2b

View file

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