mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
conf: reuse already-fetched newlogins value
This commit is contained in:
parent
07ac649763
commit
f83a81242a
2
conf.py
2
conf.py
@ -73,7 +73,7 @@ def validateConf(conf, logger=None):
|
|||||||
|
|
||||||
assert conf['login'].get('password') != "changeme", "You have not set the login details correctly!"
|
assert conf['login'].get('password') != "changeme", "You have not set the login details correctly!"
|
||||||
|
|
||||||
if conf['login'].get('accounts'):
|
if newlogins:
|
||||||
assert conf.get('permissions'), "New-style accounts enabled but no permissions block was found. You will not be able to administrate your PyLink instance!"
|
assert conf.get('permissions'), "New-style accounts enabled but no permissions block was found. You will not be able to administrate your PyLink instance!"
|
||||||
|
|
||||||
return conf
|
return conf
|
||||||
|
Loading…
Reference in New Issue
Block a user