modifié: index.html

modifié:         superTornado.py
This commit is contained in:
sidya82 2014-02-27 17:51:13 +01:00
parent 3a1a910877
commit 96da224f28
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -7,7 +7,9 @@ class MainHandler(tornado.web.RequestHandler):
self.render("index.html")
class LoginHandler(tornado.web.RequestHandler):
def get(self):
def post(self):
#iden = self.get_argument("id",'')
#mdp = self.get_argument("mdp",'')
self.write("Le pseudo est :")
application = tornado.web.Application([