|
|
@ -5,7 +5,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
|
|
|
|
|
|
|
|
|
|
|
|
layout 'auth'
|
|
|
|
layout 'auth'
|
|
|
|
|
|
|
|
|
|
|
|
before_action :set_body_classes
|
|
|
|
|
|
|
|
before_action :set_confirmation_user!, only: [:show, :confirm_captcha]
|
|
|
|
before_action :set_confirmation_user!, only: [:show, :confirm_captcha]
|
|
|
|
before_action :redirect_confirmed_user, if: :signed_in_confirmed_user?
|
|
|
|
before_action :redirect_confirmed_user, if: :signed_in_confirmed_user?
|
|
|
|
|
|
|
|
|
|
|
@ -73,10 +72,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
|
|
|
|
user_signed_in? && current_user.confirmed? && current_user.unconfirmed_email.blank?
|
|
|
|
user_signed_in? && current_user.confirmed? && current_user.unconfirmed_email.blank?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def set_body_classes
|
|
|
|
|
|
|
|
@body_classes = 'lighter'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def after_resending_confirmation_instructions_path_for(_resource_name)
|
|
|
|
def after_resending_confirmation_instructions_path_for(_resource_name)
|
|
|
|
if user_signed_in?
|
|
|
|
if user_signed_in?
|
|
|
|
if current_user.confirmed? && current_user.approved?
|
|
|
|
if current_user.confirmed? && current_user.approved?
|
|
|
|