mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-21 22:33:13 +08:00
Merge pull request #3567 from okriuchykhin/ok_SCI_6055
Confirm the invitation when user is invited and lands in with SSO [SCI-6055]
This commit is contained in:
commit
62d4d8e36e
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ module Users
|
|||
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?
|
||||
sign_in_and_redirect(user)
|
||||
else
|
||||
# Cannot do anything with it, so just return an error
|
||||
|
|
Loading…
Reference in a new issue