diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index a82b679..6f32f1f 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -34,7 +34,7 @@ # POST /resource def create - logger.debug "#{sign_up_params}" + #logger.debug "#{sign_up_params}" if sign_up_params[:accept_terms] != "1" then redirect_to after_sign_up_error_path_for(resource), alert: I18n.t('helpers.you_must_accept') else @@ -136,8 +136,8 @@ end def sign_up_params - params.require(:user).permit(:email, :password, :password_confirmation, :accept_terms, - :organisation_id, :other_organisation) + params.require(:user).permit(:email, :password, :password_confirmation, + :accept_terms, :org_id, :other_organisation) end end