modifié: m/log.py
modifié: m/login.py modifié: superTornado.py
This commit is contained in:
12
m/log.py
12
m/log.py
@ -31,17 +31,17 @@ class Log(object):
|
||||
def printL(self,pMsg,pLvl):
|
||||
self.logger.log(pLvl,pMsg)
|
||||
if pLvl == 10 :
|
||||
print bcolors.DEBUG,
|
||||
print bcolors.DEBUG
|
||||
elif pLvl == 20 :
|
||||
print bcolors.INFO,
|
||||
print bcolors.INFO
|
||||
elif pLvl == 25 :
|
||||
print bcolors.SUCCESS,
|
||||
print bcolors.SUCCESS
|
||||
elif pLvl == 30 :
|
||||
print bcolors.WARNING,
|
||||
print bcolors.WARNING
|
||||
elif pLvl == 40 :
|
||||
print bcolors.FAIL,
|
||||
print bcolors.FAIL
|
||||
print pMsg
|
||||
print bcolors.ENDC,
|
||||
print bcolors.ENDC
|
||||
|
||||
class bcolors:
|
||||
DEBUG = '\033[94m'
|
||||
|
@ -8,7 +8,7 @@ class Login(object):
|
||||
with open("m/fichier/autorise", "r") as source :
|
||||
for ligne in source :
|
||||
data = ligne.rstrip('\n\r').split(',')
|
||||
if data[0] in pLog :
|
||||
if data[0] == pLog :
|
||||
if data[1] in hashMdp :
|
||||
source.close()
|
||||
return True
|
||||
|
Reference in New Issue
Block a user