aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/webui/handlers/login.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/fg21sim/webui/handlers/login.py b/fg21sim/webui/handlers/login.py
index 4529005..5a9987a 100644
--- a/fg21sim/webui/handlers/login.py
+++ b/fg21sim/webui/handlers/login.py
@@ -3,14 +3,22 @@
"""
Login handler
+
+Currently, the login is simply authenticated by a plain password.
"""
-from tornado.options import options
+from tornado.options import define, options
from tornado.escape import xhtml_escape
from .base import BaseRequestHandler
+# Each module defines its own options, which are added to the global namespace
+define("password", type=str,
+ help=("Password authentication to access the Web UI. "
+ "If not specified, then all accesses are allowed."))
+
+
class LoginHandler(BaseRequestHandler):
"""
Login page handler of the Web UI.