From 6ab48a0c07ac1019b4c72149a0a8b52237c10372 Mon Sep 17 00:00:00 2001 From: AyakorK Date: Fri, 8 Dec 2023 16:23:38 +0100 Subject: [PATCH] fix: Readd a line to force tos_agreement to be accepted --- app/commands/decidim/create_omniauth_registration.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/commands/decidim/create_omniauth_registration.rb b/app/commands/decidim/create_omniauth_registration.rb index 40b6bcd..d51d82f 100644 --- a/app/commands/decidim/create_omniauth_registration.rb +++ b/app/commands/decidim/create_omniauth_registration.rb @@ -77,6 +77,7 @@ def create_or_find_user @user.skip_confirmation! if verified_email end + @user.tos_agreement = "1" @user.save! end