From 6e10d56479de8312ffa8623676055a882f5e73ee Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Thu, 7 Jul 2016 19:42:23 -0400 Subject: [PATCH] Only add 'auth.local' to MODULES when AUTH_LOCAL_ENABLED is True --- realms/config/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realms/config/__init__.py b/realms/config/__init__.py index 891f0ea..8a3f0b0 100644 --- a/realms/config/__init__.py +++ b/realms/config/__init__.py @@ -145,7 +145,7 @@ class Config(object): def __init__(self): for k, v in self.read().iteritems(): setattr(self, k, v) - if hasattr(self, 'AUTH_LOCAL_ENABLE'): + if getattr(self, 'AUTH_LOCAL_ENABLE', True): self.MODULES.append('auth.local') if hasattr(self, 'OAUTH'): self.MODULES.append('auth.oauth')