Commit 981b249a authored by gdetrez's avatar gdetrez

log des connexions. Je n'arrive pas me loguer avec links sur zamok...

darcs-hash:20061030225447-f46e9-c1291666d2c9e063390f0be1ac6dc53898e89e1a.gz
parent 0700e744
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment