mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
REFACTOR: Always validate email by default.
This commit is contained in:
parent
d9a9ad3edb
commit
defea6245c
4 changed files with 7 additions and 7 deletions
|
@ -641,7 +641,7 @@ class UsersController < ApplicationController
|
|||
primary_email = @user.primary_email
|
||||
|
||||
primary_email.email = params[:email]
|
||||
primary_email.should_validate_email = true
|
||||
primary_email.skip_validate_email = false
|
||||
|
||||
if primary_email.save
|
||||
@user.email_tokens.create(email: @user.email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue