Don't bother verifying an email address that hasn't changed

This commit is contained in:
Tom Hughes 2013-09-09 16:05:16 +01:00
parent 6494747882
commit ecf8c90e88

View file

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