modifié: index.html
modifié: superTornado.py
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
				
			|||||||
    </head>
 | 
					    </head>
 | 
				
			||||||
    <body>
 | 
					    <body>
 | 
				
			||||||
        <h2>Acces securise camera</h2>
 | 
					        <h2>Acces securise camera</h2>
 | 
				
			||||||
        <form action="/" method="post">
 | 
					        <form action="/login" 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">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,6 +13,7 @@ class LoginHandler(tornado.web.RequestHandler):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
application = tornado.web.Application([
 | 
					application = tornado.web.Application([
 | 
				
			||||||
    (r"/", MainHandler),
 | 
					    (r"/", MainHandler),
 | 
				
			||||||
 | 
					    (r"/login", MainHandler),
 | 
				
			||||||
])
 | 
					])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user