From bbee163954a2a5896c0d6361934060c731150f9d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 25 Aug 2020 04:34:14 +0200 Subject: [PATCH] Fixed plugin detection --- flaschengeist/__init__.py | 2 +- flaschengeist/modules/__init__.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/flaschengeist/__init__.py b/flaschengeist/__init__.py index beb4b32..441e331 100644 --- a/flaschengeist/__init__.py +++ b/flaschengeist/__init__.py @@ -38,7 +38,7 @@ def create_app(): logger.debug('Found authentification plugin: %s', entry_point.name) if entry_point.name == config['FLASCHENGEIST']['AUTH']: app.config['FG_AUTH_BACKEND'] = entry_point.load()() - app.config['FG_AUTH_BACKEND'].configure(config[entry_point.name] if config.has_section(entry_point.name) else None) + app.config['FG_AUTH_BACKEND'].configure(config[entry_point.name] if config.has_section(entry_point.name) else {}) logger.info('Loaded authentification plugin > %s <', entry_point.name) break if not app.config['FG_AUTH_BACKEND']: diff --git a/flaschengeist/modules/__init__.py b/flaschengeist/modules/__init__.py index 728864c..a985443 100644 --- a/flaschengeist/modules/__init__.py +++ b/flaschengeist/modules/__init__.py @@ -1,7 +1,4 @@ class Auth(): - def defaultConfig(self): - return None - def configure(self, config): pass