mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
implementing 'none' authentification (no authentification)
This commit is contained in:
parent
181597e273
commit
9263a8c963
@ -362,6 +362,8 @@ class LdapCherry(object):
|
||||
return render_error(alert, message)
|
||||
|
||||
def _check_auth(self, must_admin):
|
||||
if self.auth_mode == 'none':
|
||||
return 'anonymous'
|
||||
username = cherrypy.session.get(SESSION_KEY)
|
||||
if not username:
|
||||
raise cherrypy.HTTPRedirect("/signin")
|
||||
|
Loading…
Reference in New Issue
Block a user