mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-26 03:04:30 +01:00
fix authentifcation
This commit is contained in:
parent
5a199ae3fb
commit
77fbb346f1
@ -570,7 +570,7 @@ class LdapCherry(object):
|
|||||||
def _check_session(self):
|
def _check_session(self):
|
||||||
if self.auth_mode == 'none':
|
if self.auth_mode == 'none':
|
||||||
return 'anonymous'
|
return 'anonymous'
|
||||||
username = cherrypy.session.get(SESSION_KEY)
|
return cherrypy.session.get(SESSION_KEY)
|
||||||
|
|
||||||
def _check_auth(self, must_admin):
|
def _check_auth(self, must_admin):
|
||||||
""" check if a user is autheticated and, optionnaly an administrator
|
""" check if a user is autheticated and, optionnaly an administrator
|
||||||
|
Loading…
Reference in New Issue
Block a user