Fixed plugin detection

This commit is contained in:
Ferdinand Thiessen 2020-08-25 04:34:14 +02:00
parent 5f408bfd3c
commit bbee163954
2 changed files with 1 additions and 4 deletions

View File

@ -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']:

View File

@ -1,7 +1,4 @@
class Auth():
def defaultConfig(self):
return None
def configure(self, config):
pass