From 77fbb346f1b95c21ba4a8ab971dc7feb1667d1f7 Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 14 Jul 2015 23:49:09 +0200 Subject: [PATCH] fix authentifcation --- ldapcherry/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index 765ca5b..4fea3ce 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -570,7 +570,7 @@ class LdapCherry(object): def _check_session(self): if self.auth_mode == 'none': return 'anonymous' - username = cherrypy.session.get(SESSION_KEY) + return cherrypy.session.get(SESSION_KEY) def _check_auth(self, must_admin): """ check if a user is autheticated and, optionnaly an administrator