modifié: superTornado.py
This commit is contained in:
parent
9edb3bbee4
commit
a8c3cac327
@ -31,7 +31,7 @@ class MainHandler(BaseHandler):
|
||||
autorise = login.connexion(iden, mdp)
|
||||
#maison = httplib.HTTPConnection("192.168.16.150", 80)
|
||||
if autorise == True:
|
||||
ficLog.enregDansLog(iden,"Authorized user connection",self.request.remote_ip.())
|
||||
ficLog.enregDansLog(iden,"Authorized user connection",self.request.remote_ip())
|
||||
if confAveug == True:
|
||||
print '->Send audio alarm authorized user'
|
||||
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")'
|
||||
@ -60,7 +60,7 @@ class UnauthorizedHandler(BaseHandler):
|
||||
force = self.get_argument("illegalAccess","")
|
||||
if force == "1" :
|
||||
self.set_secure_cookie("user", "illegalUser")
|
||||
ficLog.enregDansLog("illegalUser","Unauthorized user connection",self.request.remote_ip.())
|
||||
ficLog.enregDansLog("illegalUser","Unauthorized user connection",self.request.remote_ip())
|
||||
if confAveug == True:
|
||||
print '->Send audio alarm unauthorized user'
|
||||
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")'
|
||||
|
Reference in New Issue
Block a user