From 94ce3f24262e948e0b3275552c9ed4550bf41248 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 15 Nov 2016 16:27:26 +0800 Subject: webui: To support password authentication Move the "IndexHandler" to separate module located at the "handlers/" directory. --- fg21sim/webui/handlers/index.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 fg21sim/webui/handlers/index.py (limited to 'fg21sim/webui/handlers') diff --git a/fg21sim/webui/handlers/index.py b/fg21sim/webui/handlers/index.py new file mode 100644 index 0000000..e95c310 --- /dev/null +++ b/fg21sim/webui/handlers/index.py @@ -0,0 +1,19 @@ +# Copyright (c) 2016 Weitian LI +# MIT license + +""" +Login handler +""" + +import tornado.web + +from .base import BaseRequestHandler + + +class IndexHandler(BaseRequestHandler): + """ + Index page handler of the Web UI. + """ + @tornado.web.authenticated + def get(self): + self.render("index.html") -- cgit v1.2.2