modifié: site/index.html
modifié: superTornado.py
This commit is contained in:
		| @@ -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"> | ||||
|   | ||||
| @@ -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), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user