mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
implementing 'none' authentification (no authentification)
This commit is contained in:
parent
181597e273
commit
9263a8c963
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue