mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't mark user as active if verified email is different.
This commit is contained in:
@@ -111,10 +111,8 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
|
||||
def user_found(user)
|
||||
# automatically activate/unstage any account if a provider marked the email valid
|
||||
if @auth_result.email_valid
|
||||
user.staged = false
|
||||
user.active = true
|
||||
user.save
|
||||
if @auth_result.email_valid && @auth_result.email == user.email
|
||||
user.update!(staged: false, active: true)
|
||||
end
|
||||
|
||||
if ScreenedIpAddress.should_block?(request.remote_ip)
|
||||
|
||||
Reference in New Issue
Block a user