mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
927479733b
see https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284 for more info
15 lines
414 B
Ruby
15 lines
414 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Devise controller for handling client sessions
|
|
class SessionsController < Devise::SessionsController
|
|
|
|
def new
|
|
active_provider = AuthProvider.active
|
|
if active_provider.providable_type != DatabaseProvider.name
|
|
redirect_post "/users/auth/#{active_provider.strategy_name}", params: { authenticity_token: form_authenticity_token }
|
|
else
|
|
super
|
|
end
|
|
end
|
|
end
|