Move OAuth login into its own endpoints module
This commit is contained in:
parent
0167e1e7bf
commit
198bdf88bc
6 changed files with 32 additions and 31 deletions
|
@ -24,7 +24,7 @@ class OAuthLoginManager(object):
|
|||
if custom_service.login_enabled(config):
|
||||
self.services.append(custom_service)
|
||||
else:
|
||||
prefix = key[0:len(key) - len('_LOGIN_CONFIG')].lower()
|
||||
prefix = key.rstrip('_LOGIN_CONFIG').lower()
|
||||
if prefix in PREFIX_BLACKLIST:
|
||||
raise Exception('Cannot use reserved config name %s' % key)
|
||||
|
||||
|
|
Reference in a new issue