1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-05 10:37:47 +02:00

implementing 'none' authentification (no authentification)

This commit is contained in:
kakwa 2015-05-31 11:39:15 +02:00
parent 181597e273
commit 9263a8c963

View File

@ -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")