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):
|
def _cp_on_http_error(self, status, message):
|
||||||
if status==403:
|
if status==403:
|
||||||
cherrypy.response.body = {
|
cherrypy.response.body = {
|
||||||
'template':'error403',
|
'template':'error403',
|
||||||
'values':{'status':status, 'message':message },
|
'values':{'status':status, 'message':message },
|
||||||
'standalone':False,
|
'standalone':False,
|
||||||
}
|
}
|
||||||
elif status==404:
|
elif status==404:
|
||||||
cherrypy.response.body = {
|
cherrypy.response.body = {
|
||||||
'template':'error',
|
'template':'error',
|
||||||
'values':{'status':status, 'message':message },
|
'values':{'status':status, 'message':message },
|
||||||
'standalone':False,
|
'standalone':False,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
cherrypy._cputil._cp_on_http_error(status, message)
|
cherrypy._cputil._cp_on_http_error(status, message)
|
||||||
|
|
||||||
|
@ -159,6 +159,7 @@ def verifLogin(login = '', password = ''):
|
||||||
cherrypy.session['uid'] = login
|
cherrypy.session['uid'] = login
|
||||||
cherrypy.session['session_key'] = True
|
cherrypy.session['session_key'] = True
|
||||||
cherrypy.session['droits'] = adh.droits()
|
cherrypy.session['droits'] = adh.droits()
|
||||||
|
cherrypy.log("User logged in : %s" % cherrypy.session['uid'], "LOGIN")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
#print("bad password")
|
#print("bad password")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue