Add secure way to genreate password, warn if no password is defined

This commit is contained in:
Matthias
2019-05-26 14:40:03 +02:00
parent 90ece09ee9
commit dab4307e04
3 changed files with 18 additions and 3 deletions

View File

@@ -106,6 +106,10 @@ class ApiServer(RPC):
logger.warning("SECURITY WARNING - This is insecure please set to your loopback,"
"e.g 127.0.0.1 in config.json")
if not self._config['api_server'].get('password'):
logger.warning("SECURITY WARNING - No password for local REST Server defined. "
"Please make sure that this is intentional!")
# Run the Server
logger.info('Starting Local Rest Server.')
try: