modifié: superTornado.py
This commit is contained in:
parent
b88379ebc6
commit
342de246cc
@ -62,7 +62,7 @@ class UnauthorizedHandler(BaseHandler):
|
|||||||
self.render("illegal.html")
|
self.render("illegal.html")
|
||||||
def post(self):
|
def post(self):
|
||||||
force = self.get_argument("illegalAccess","")
|
force = self.get_argument("illegalAccess","")
|
||||||
if force == 1 :
|
if force == "1" :
|
||||||
self.set_secure_cookie("user", "illegalUser")
|
self.set_secure_cookie("user", "illegalUser")
|
||||||
else :
|
else :
|
||||||
self.redirect("/")
|
self.redirect("/")
|
||||||
|
Reference in New Issue
Block a user