moins de log, plus de clart
darcs-hash:20050224201243-4ec08-b341b8c7be2474d33fe0cc8bbd39db65b58ac0c3.gz
This commit is contained in:
parent
dc78da71fa
commit
1b272ada17
1 changed files with 3 additions and 6 deletions
|
@ -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'
|
||||
|
||||
######################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue