Implement reloading the configuration at runtime

This commit is contained in:
2017-11-23 18:39:08 +00:00
parent 79d1e2a86c
commit 587c3bb87c
2 changed files with 7 additions and 1 deletions

View File

@@ -150,6 +150,11 @@ class Helper(object):
info("\n".join(helpMap))
return
elif cmd == "rehash":
global config
config = helper.getConfig()
success("Configuration rehashed successfully")
elif cmd == "pass":
info("You are already authenticated")
return