Update the username cookie when the display name is changed
This commit is contained in:
parent
5564bcabbf
commit
e7a0302e2b
1 changed files with 2 additions and 0 deletions
|
@ -663,6 +663,8 @@ private
|
||||||
if user.save
|
if user.save
|
||||||
set_locale
|
set_locale
|
||||||
|
|
||||||
|
cookies.permanent["_osm_username"] = user.display_name
|
||||||
|
|
||||||
if user.new_email.blank?
|
if user.new_email.blank?
|
||||||
flash.now[:notice] = t 'user.account.flash update success'
|
flash.now[:notice] = t 'user.account.flash update success'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue