modifié: index.html
modifié: superTornado.py
This commit is contained in:
parent
3a1a910877
commit
96da224f28
@ -7,7 +7,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>Acces securise camera</h2>
|
<h2>Acces securise camera</h2>
|
||||||
<form action="login" 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">
|
||||||
|
@ -7,7 +7,9 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
self.render("index.html")
|
self.render("index.html")
|
||||||
|
|
||||||
class LoginHandler(tornado.web.RequestHandler):
|
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 :")
|
self.write("Le pseudo est :")
|
||||||
|
|
||||||
application = tornado.web.Application([
|
application = tornado.web.Application([
|
||||||
|
Reference in New Issue
Block a user