moins de log, plus de clart

darcs-hash:20050224201243-4ec08-b341b8c7be2474d33fe0cc8bbd39db65b58ac0c3.gz
This commit is contained in:
chove 2005-02-24 21:12:43 +01:00
parent dc78da71fa
commit 1b272ada17

View file

@ -48,14 +48,11 @@ if action == 'valid-auth' :
action = 'liste'
if action != 'auth' :
try :
if not users.has_key( sess.data['user'] + ':' + sess.data['password'] ) :
log(sess.data['user'] + ' mauvais user/pass' )
raise ValueError, 'Mauvais user/pass'
if users.has_key( sess.data['user'] + ':' + sess.data['password'] ) :
bornes = users[ sess.data['user'] + ':' + sess.data['password'] ]
except :
page.add('<font color="red">Erreur d\'authentification !</font><br><br>')
else :
log(sess.data['user'] + ' erreur d\'authentification' )
page.add('<font color="red">Erreur d\'authentification !</font><br><br>')
action = 'auth'
######################################################