Refactoring auth
This commit is contained in:
parent
621affecb5
commit
486de8c3f4
7 changed files with 91 additions and 69 deletions
|
@ -120,8 +120,16 @@ class Settings < Settingslogic
|
|||
app['backup_keep_time'] || 0
|
||||
end
|
||||
|
||||
def ldap_enabled?
|
||||
ldap['enabled']
|
||||
rescue
|
||||
false
|
||||
end
|
||||
|
||||
def omniauth_enabled?
|
||||
omniauth['enabled'] || false
|
||||
omniauth && omniauth['enabled']
|
||||
rescue
|
||||
false
|
||||
end
|
||||
|
||||
def omniauth_providers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue