Allow form post to third party authentication providers
This commit is contained in:
parent
afce133d86
commit
bc233420dd
1 changed files with 4 additions and 0 deletions
|
@ -270,6 +270,10 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def login
|
||||
append_content_security_policy_directives(
|
||||
:form_action => %w[accounts.google.com *.facebook.com login.live.com github.com meta.wikimedia.org]
|
||||
)
|
||||
|
||||
session[:referer] = safe_referer(params[:referer]) if params[:referer]
|
||||
|
||||
if params[:username].present? && params[:password].present?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue