# HG changeset patch # User Marcin Kuzminski # Date 2010-05-22 18:51:54 # Node ID 3fd2af1ba5eac635fafb0e810695672c3b686722 # Parent 5af2cd31c99be1bd0b012894f9ca5efc55c18912 updated logging in logout. Added before, on login page. diff --git a/pylons_app/controllers/login.py b/pylons_app/controllers/login.py --- a/pylons_app/controllers/login.py +++ b/pylons_app/controllers/login.py @@ -11,6 +11,9 @@ log = logging.getLogger(__name__) 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 @@ class LoginController(BaseController): def logout(self): session['hg_app_user'] = AuthUser() session.save() + log.info('Logging out and setting user as Empty') redirect(url('hg_home'))