about summary refs log tree commit diff
path: root/app/models/concerns/omniauthable.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-01-25 12:36:54 +0100
committerGitHub <noreply@github.com>2019-01-25 12:36:54 +0100
commit9519d55332a1f22891e5ad8a1de1d2ba027bafc7 (patch)
treef083e968bc69b953da96163b575ec63d4c99d67c /app/models/concerns/omniauthable.rb
parente1ec3a9f09add8a34b1a77ce217be8e51ebd4936 (diff)
Fix SSO authentication not working due to missing agreement boolean (#9915)
Fix #9906
Diffstat (limited to 'app/models/concerns/omniauthable.rb')
-rw-r--r--app/models/concerns/omniauthable.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/concerns/omniauthable.rb b/app/models/concerns/omniauthable.rb
index f263fe7af..4dd2e9383 100644
--- a/app/models/concerns/omniauthable.rb
+++ b/app/models/concerns/omniauthable.rb
@@ -63,6 +63,7 @@ module Omniauthable
       {
         email: email || "#{TEMP_EMAIL_PREFIX}-#{auth.uid}-#{auth.provider}.com",
         password: Devise.friendly_token[0, 20],
+        agreement: true,
         account_attributes: {
           username: ensure_unique_username(auth.uid),
           display_name: display_name,