diff options
author | Starfall <root@starfall.blue> | 2020-03-01 11:49:29 -0600 |
---|---|---|
committer | Starfall <root@starfall.blue> | 2020-03-01 11:49:29 -0600 |
commit | 22a55edc158352003a3953964c9d332a60c86428 (patch) | |
tree | a26bd8374e4b8264dbae815fbfbd3b91ae51450b /app/controllers/auth/registrations_controller.rb | |
parent | 5902299384d15249fe4b84b8761d4a49f3c7f6fd (diff) | |
parent | 553a16c6f8a74677336114b6379e1db1d19cb81c (diff) |
Merge branch 'glitch'
Diffstat (limited to 'app/controllers/auth/registrations_controller.rb')
-rw-r--r-- | app/controllers/auth/registrations_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index 531df7751..f6a85d87e 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -42,7 +42,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController 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? @@ -50,7 +49,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController def configure_sign_up_params devise_parameter_sanitizer.permit(:sign_up) do |u| - u.permit({ account_attributes: [:username], invite_request_attributes: [:text] }, :email, :password, :password_confirmation, :invite_code) + u.permit({ account_attributes: [:username], invite_request_attributes: [:text] }, :email, :password, :password_confirmation, :invite_code, :agreement) end end |