mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
FIX: Don't skip validations when updating user's email.
This commit is contained in:
parent
4bb454d889
commit
7777a44673
|
@ -85,7 +85,7 @@ class EmailUpdater
|
|||
confirm_result = :authorizing_new
|
||||
when EmailChangeRequest.states[:authorizing_new]
|
||||
change_req.update_column(:change_state, EmailChangeRequest.states[:complete])
|
||||
user.primary_email.update_column(:email, token.email)
|
||||
user.primary_email.update!(email: token.email)
|
||||
confirm_result = :complete
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user