From 71159e2ce289176645cbef8b1ba4c844e164ba0f Mon Sep 17 00:00:00 2001 From: Maciej Biel Date: Sun, 5 Nov 2023 17:43:46 +0100 Subject: [PATCH] Fix omniauth bug --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index 5dfd26b..e4f1aa0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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