|
|
@ -15,6 +15,10 @@ class Auth::SessionsController < Devise::SessionsController
|
|
|
|
before_action :set_instance_presenter, only: [:new]
|
|
|
|
before_action :set_instance_presenter, only: [:new]
|
|
|
|
before_action :set_body_classes
|
|
|
|
before_action :set_body_classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
content_security_policy only: :new do |p|
|
|
|
|
|
|
|
|
p.form_action(false)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def check_suspicious!
|
|
|
|
def check_suspicious!
|
|
|
|
user = find_user
|
|
|
|
user = find_user
|
|
|
|
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
|
|
|
|
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
|
|
|
|