diff --git a/site/index.html b/site/index.html index 00b6b85..7d2164b 100644 --- a/site/index.html +++ b/site/index.html @@ -7,7 +7,7 @@

Acces securise camera

-
+ ID :
MDP :
diff --git a/superTornado.py b/superTornado.py index 025ee74..23b05a6 100644 --- a/superTornado.py +++ b/superTornado.py @@ -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),