Fix user auto linking with Azure AD [SCI-7764] (#4924)

This commit is contained in:
Alex Kriuchykhin 2023-02-02 13:27:49 +01:00 committed by GitHub
parent 1720fdf85b
commit 15ac306244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ module Users
end
sign_in_and_redirect(user)
elsif provider_conf[:auto_link_on_sign_in]
elsif provider_conf['auto_link_on_sign_in']
# Link to existing local account
user.user_identities.create!(provider: auth.provider, uid: auth.uid)
user.update!(confirmed_at: user.created_at) if user.confirmed_at.blank?