Skip to content

Commit

Permalink
Fix sign-ups without checked user agreement being accepted through th…
Browse files Browse the repository at this point in the history
…e web form (mastodon#13088)

* Fix user agreement not being verified

* Fix tests

* Fix up agreement field being dismissed
  • Loading branch information
ClearlyClaire authored and Charlie Irawan committed Feb 2, 2021
1 parent e61070c commit 6a0bced
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/auth/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def build_resource(hash = nil)

resource.locale = I18n.locale
resource.invite_code = params[:invite_code] if resource.invite_code.blank?
resource.agreement = true
resource.current_sign_in_ip = request.remote_ip

resource.build_account if resource.account.nil?
Expand Down

0 comments on commit 6a0bced

Please sign in to comment.