Skip to content

Commit

Permalink
fix: Readd a line to force tos_agreement to be accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Dec 8, 2023
1 parent 52b24c1 commit 6ab48a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/commands/decidim/create_omniauth_registration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def create_or_find_user
@user.skip_confirmation! if verified_email
end

@user.tos_agreement = "1"
@user.save!
end

Expand Down

0 comments on commit 6ab48a0

Please sign in to comment.