From 15ac306244de61538902371697e8402b3ed1c475 Mon Sep 17 00:00:00 2001 From: Alex Kriuchykhin Date: Thu, 2 Feb 2023 13:27:49 +0100 Subject: [PATCH] Fix user auto linking with Azure AD [SCI-7764] (#4924) --- app/controllers/users/omniauth_callbacks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 9e6baaa0c..8484240f8 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -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?