log des connexions. Je n'arrive pas me loguer avec links sur zamok...
darcs-hash:20061030225447-f46e9-c1291666d2c9e063390f0be1ac6dc53898e89e1a.gz
This commit is contained in:
parent
0700e74456
commit
981b249a2e
1 changed files with 14 additions and 13 deletions
|
@ -104,18 +104,18 @@ class Intranet:
|
|||
|
||||
|
||||
def _cp_on_http_error(self, status, message):
|
||||
if status==403:
|
||||
cherrypy.response.body = {
|
||||
'template':'error403',
|
||||
'values':{'status':status, 'message':message },
|
||||
'standalone':False,
|
||||
}
|
||||
elif status==404:
|
||||
cherrypy.response.body = {
|
||||
'template':'error',
|
||||
'values':{'status':status, 'message':message },
|
||||
'standalone':False,
|
||||
}
|
||||
if status==403:
|
||||
cherrypy.response.body = {
|
||||
'template':'error403',
|
||||
'values':{'status':status, 'message':message },
|
||||
'standalone':False,
|
||||
}
|
||||
elif status==404:
|
||||
cherrypy.response.body = {
|
||||
'template':'error',
|
||||
'values':{'status':status, 'message':message },
|
||||
'standalone':False,
|
||||
}
|
||||
else:
|
||||
cherrypy._cputil._cp_on_http_error(status, message)
|
||||
|
||||
|
@ -159,6 +159,7 @@ def verifLogin(login = '', password = ''):
|
|||
cherrypy.session['uid'] = login
|
||||
cherrypy.session['session_key'] = True
|
||||
cherrypy.session['droits'] = adh.droits()
|
||||
cherrypy.log("User logged in : %s" % cherrypy.session['uid'], "LOGIN")
|
||||
return
|
||||
else:
|
||||
#print("bad password")
|
||||
|
@ -169,7 +170,7 @@ def verifLogin(login = '', password = ''):
|
|||
else:
|
||||
#print("sth empty")
|
||||
message = u"L'authentification a echoué."
|
||||
return message
|
||||
return message
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue