modifié: site/index.html

modifié:         superTornado.py
This commit is contained in:
sidya82 2014-02-27 16:24:53 +01:00
parent 0af77e2c43
commit 6ad28b54a4
2 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,7 @@
</head>
<body>
<h2>Acces securise camera</h2>
<form action="superTornado.py" method="post">
<form action="../superTornado.py" method="post">
ID : <input type="text" name="id"><br/>
MDP : <input type="password" name="mdp"> <br/>
<input type="submit" value="Connexion">

View File

@ -4,6 +4,10 @@ import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
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([
(r"/", MainHandler),