mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 22:14:44 +08:00
FIX: confirm email token for user created via social login
This commit is contained in:
@ -112,7 +112,8 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||||||
def user_found(user)
|
def user_found(user)
|
||||||
# automatically activate/unstage any account if a provider marked the email valid
|
# automatically activate/unstage any account if a provider marked the email valid
|
||||||
if @auth_result.email_valid && @auth_result.email == user.email
|
if @auth_result.email_valid && @auth_result.email == user.email
|
||||||
user.update!(staged: false, active: true)
|
user.update!(staged: false)
|
||||||
|
user.activate
|
||||||
end
|
end
|
||||||
|
|
||||||
if ScreenedIpAddress.should_block?(request.remote_ip)
|
if ScreenedIpAddress.should_block?(request.remote_ip)
|
||||||
|
Reference in New Issue
Block a user