mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
15 lines
355 B
Ruby
15 lines
355 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_to "/users/auth/#{active_provider.strategy_name}"
|
|
else
|
|
super
|
|
end
|
|
end
|
|
end
|