mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Fix user auto linking with Azure AD [SCI-7764] (#4924)
This commit is contained in:
parent
1720fdf85b
commit
15ac306244
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue