mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-13 23:48:55 +01:00
14 lines
424 B
Ruby
14 lines
424 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Devise controller for handling client sessions
|
|
class SessionsController < Devise::SessionsController
|
|
def new
|
|
active_provider = Rails.configuration.auth_provider
|
|
if active_provider.providable_type == 'DatabaseProvider'
|
|
super
|
|
else
|
|
redirect_post "/users/auth/#{active_provider.strategy_name}", params: { authenticity_token: form_authenticity_token }
|
|
end
|
|
end
|
|
end
|