|
|
|
@ -12,7 +12,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
|
|
|
|
before_action :set_sessions, only: [:edit, :update]
|
|
|
|
|
before_action :set_strikes, only: [:edit, :update]
|
|
|
|
|
before_action :require_not_suspended!, only: [:update]
|
|
|
|
|
before_action :set_cache_headers, only: [:edit, :update]
|
|
|
|
|
before_action :set_rules, only: :new
|
|
|
|
|
before_action :require_rules_acceptance!, only: :new
|
|
|
|
|
before_action :set_registration_form_time, only: :new
|
|
|
|
@ -139,10 +138,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
|
|
|
|
set_locale { render :rules }
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def set_cache_headers
|
|
|
|
|
response.cache_control.replace(private: true, no_store: true)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def is_flashing_format? # rubocop:disable Naming/PredicateName
|
|
|
|
|
if params[:action] == 'create'
|
|
|
|
|
false # Disable flash messages for sign-up
|
|
|
|
|