Fix external authentication not running onboarding code for new users (#23458)

This commit is contained in:
Claire 2023-03-03 20:45:55 +01:00 committed by GitHub
parent 8784498ebf
commit 6b16b77ab0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ module Omniauthable
user.account.avatar_remote_url = nil user.account.avatar_remote_url = nil
end end
user.skip_confirmation! if email_is_verified user.confirm! if email_is_verified
user.save! user.save!
user user
end end