Don't bother verifying an email address that hasn't changed
This commit is contained in:
parent
6494747882
commit
ecf8c90e88
1 changed files with 1 additions and 1 deletions
|
@ -732,7 +732,7 @@ private
|
|||
|
||||
cookies.permanent["_osm_username"] = user.display_name
|
||||
|
||||
if user.new_email.blank?
|
||||
if user.new_email.blank? or user.new_email == user.email
|
||||
flash.now[:notice] = t 'user.account.flash update success'
|
||||
else
|
||||
user.email = user.new_email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue