Only add 'auth.local' to MODULES when AUTH_LOCAL_ENABLED is True
This commit is contained in:
parent
93ba987a3a
commit
6e10d56479
|
@ -145,7 +145,7 @@ class Config(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
for k, v in self.read().iteritems():
|
for k, v in self.read().iteritems():
|
||||||
setattr(self, k, v)
|
setattr(self, k, v)
|
||||||
if hasattr(self, 'AUTH_LOCAL_ENABLE'):
|
if getattr(self, 'AUTH_LOCAL_ENABLE', True):
|
||||||
self.MODULES.append('auth.local')
|
self.MODULES.append('auth.local')
|
||||||
if hasattr(self, 'OAUTH'):
|
if hasattr(self, 'OAUTH'):
|
||||||
self.MODULES.append('auth.oauth')
|
self.MODULES.append('auth.oauth')
|
||||||
|
|
Loading…
Reference in a new issue