Skip to content
Snippets Groups Projects
Unverified Commit 48e13660 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix form-action CSP directive for external login (#20962)

parent 4ae97a2e
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,10 @@ class Auth::SessionsController < Devise::SessionsController
before_action :set_instance_presenter, only: [:new]
before_action :set_body_classes
content_security_policy only: :new do |p|
p.form_action(false)
end
def check_suspicious!
user = find_user
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment