Skip to content

Commit

Permalink
Fix omniauth bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejb2k committed Nov 5, 2023
1 parent 10559b7 commit 71159e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def otp_enabled?
def self.from_omniauth!(auth)
find_or_create_by!(provider: auth.provider, uid: auth.uid) do |user|
user.email = auth.info.email
user.tos_agreement = true
user.password = Devise.friendly_token[0, 20]
user.skip_confirmation!
end
Expand Down

0 comments on commit 71159e2

Please sign in to comment.