Move OAuth login into its own endpoints module

This commit is contained in:
Joseph Schorr 2017-02-16 15:56:16 -05:00
parent 0167e1e7bf
commit 198bdf88bc
6 changed files with 32 additions and 31 deletions

View file

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