modifié: m/fichier/conf
modifié: m/loadConf.py nouveau fichier: m/log.py modifié: m/login.py modifié: superTornado.py
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import time
|
||||
import hashlib
|
||||
import httplib
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class Login(object):
|
||||
def verifLogin(self,pLog,pMdp):
|
||||
@ -16,11 +15,6 @@ class Login(object):
|
||||
source.close()
|
||||
return False
|
||||
|
||||
def enregDansLog(self,pLog,pMsg,pIP):
|
||||
with open("m/fichier/log", "a") as dest :
|
||||
d = datetime.now().strftime("%c")
|
||||
dest.write("%s,%s,%s,%s\n" % (d,pLog,pMsg,pIP))
|
||||
|
||||
def connexion(self,pLog,pMdp):
|
||||
if self.verifLogin(pLog,pMdp) == True :
|
||||
return True
|
||||
|
Reference in New Issue
Block a user