Add documentation

This commit is contained in:
Matthias
2019-05-25 14:16:59 +02:00
parent 1fab884a2f
commit 5bbd3c6158
2 changed files with 8 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class ApiServer(RPC):
def require_login(func):
def func_wrapper(self, *args, **kwargs):
# Also works if no username/password is specified
# Also accepts empty username/password if it's missing in both config and request
if (request.headers.get('username') == self._config['api_server'].get('username')
and request.headers.get('password') == self._config['api_server'].get('password')):