Fixed plugin detection
This commit is contained in:
parent
5f408bfd3c
commit
bbee163954
|
@ -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']:
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
class Auth():
|
||||
def defaultConfig(self):
|
||||
return None
|
||||
|
||||
def configure(self, config):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue