IMP: redirect to login page following logout

This commit is contained in:
barbequesauce 2018-10-19 12:38:27 -04:00 committed by GitHub
parent b98e0fc826
commit 686331e0f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ class AuthController(object):
sess = cherrypy.session
username = sess.get(SESSION_KEY, None)
sess[SESSION_KEY] = None
return self.get_loginform("", from_page=from_page)
if username:
cherrypy.request.login = None
self.on_logout(username)