diff pylons_app/controllers/login.py @ 195:7109d15c6813

cleared prints leftoovers, and changed current user fetching in login controller
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 22 May 2010 16:07:28 +0200
parents 556473ba0399
children 3fd2af1ba5ea
line wrap: on
line diff
--- a/pylons_app/controllers/login.py	Sat May 22 02:20:26 2010 +0200
+++ b/pylons_app/controllers/login.py	Sat May 22 16:07:28 2010 +0200
@@ -12,7 +12,8 @@
 class LoginController(BaseController):
 
     def index(self):
-        if session.get('hg_app_user', AuthUser()).is_authenticated:
+        #redirect if already logged in
+        if c.hg_app_user.is_authenticated:
             return redirect(url('hg_home'))
         
         if request.POST: