diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 16:27:26 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-15 16:27:26 +0800 |
commit | 94ce3f24262e948e0b3275552c9ed4550bf41248 (patch) | |
tree | d858ac41694003e0f34e1fcf5e2120bdf0b63ea1 /fg21sim/webui/handlers | |
parent | f8d8335199aa86a8fe19da6e20829a1b9ded3cf9 (diff) | |
download | fg21sim-94ce3f24262e948e0b3275552c9ed4550bf41248.tar.bz2 |
webui: To support password authentication
Move the "IndexHandler" to separate module located at the "handlers/"
directory.
Diffstat (limited to 'fg21sim/webui/handlers')
-rw-r--r-- | fg21sim/webui/handlers/index.py | 19 |
1 files changed, 19 insertions, 0 deletions
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 <liweitianux@live.com> +# 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") |