diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-18 12:50:12 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-18 12:50:12 +0800 |
commit | 5805759c264adf96e9feea78a3cd3bfc2871b1de (patch) | |
tree | db39479e71018ef18613b10e62af8cc816d63af0 /fg21sim/webui/handlers/console.py | |
parent | 2abadd1a0fc88b9ac16533a994353b3cb7449451 (diff) | |
download | fg21sim-5805759c264adf96e9feea78a3cd3bfc2871b1de.tar.bz2 |
webui: Redirect to login page if not authenticated on POST request
* Remove the authentication requirement on GET operation
* "main.js": Redirect to the login page if POST response 403 forbidden
* "main.js": Use global AJAX events handling instead of `$.ajaxSetup()`
Diffstat (limited to 'fg21sim/webui/handlers/console.py')
-rw-r--r-- | fg21sim/webui/handlers/console.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fg21sim/webui/handlers/console.py b/fg21sim/webui/handlers/console.py index 475ccda..91ad075 100644 --- a/fg21sim/webui/handlers/console.py +++ b/fg21sim/webui/handlers/console.py @@ -9,7 +9,6 @@ import logging import time import tornado.ioloop -import tornado.gen from tornado.escape import json_decode, json_encode from .base import BaseRequestHandler @@ -36,7 +35,6 @@ class ConsoleAJAXHandler(BaseRequestHandler): # from another thread, which executes the submitted task. self.io_loop = tornado.ioloop.IOLoop.instance() - @tornado.web.authenticated def get(self): """ Handle the READ-ONLY tasks operations. |