changeset 202:3fd2af1ba5ea

updated logging in logout. Added before, on login page.
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 22 May 2010 20:51:54 +0200
parents 5af2cd31c99b
children be6d8aaddbd1
files pylons_app/controllers/login.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/controllers/login.py	Sat May 22 20:49:38 2010 +0200
+++ b/pylons_app/controllers/login.py	Sat May 22 20:51:54 2010 +0200
@@ -11,6 +11,9 @@
 
 class LoginController(BaseController):
 
+    def __before__(self):
+        super(LoginController, self).__before__()
+
     def index(self):
         #redirect if already logged in
         if c.hg_app_user.is_authenticated:
@@ -35,4 +38,5 @@
     def logout(self):
         session['hg_app_user'] = AuthUser()
         session.save()
+        log.info('Logging out and setting user as Empty')
         redirect(url('hg_home'))