modifié: site/index.html
modifié: superTornado.py
This commit is contained in:
parent
0af77e2c43
commit
6ad28b54a4
@ -7,7 +7,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>Acces securise camera</h2>
|
<h2>Acces securise camera</h2>
|
||||||
<form action="superTornado.py" method="post">
|
<form action="../superTornado.py" method="post">
|
||||||
ID : <input type="text" name="id"><br/>
|
ID : <input type="text" name="id"><br/>
|
||||||
MDP : <input type="password" name="mdp"> <br/>
|
MDP : <input type="password" name="mdp"> <br/>
|
||||||
<input type="submit" value="Connexion">
|
<input type="submit" value="Connexion">
|
||||||
|
@ -4,6 +4,10 @@ import tornado.web
|
|||||||
class MainHandler(tornado.web.RequestHandler):
|
class MainHandler(tornado.web.RequestHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
self.render("site/index.html")
|
self.render("site/index.html")
|
||||||
|
def post(self):
|
||||||
|
iden = self.get_argument("id")
|
||||||
|
mdp = self.get_argument("mdp")
|
||||||
|
self.write("Le pseudo est :", iden)
|
||||||
|
|
||||||
application = tornado.web.Application([
|
application = tornado.web.Application([
|
||||||
(r"/", MainHandler),
|
(r"/", MainHandler),
|
||||||
|
Reference in New Issue
Block a user