Refactoring auth

This commit is contained in:
Dmitriy Zaporozhets 2012-09-12 07:48:22 +03:00
parent 621affecb5
commit 486de8c3f4
7 changed files with 91 additions and 69 deletions

View file

@ -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