##// END OF EJS Templates
updated logging in logout. Added before, on login page.
marcink -
r202:3fd2af1b default
parent child Browse files
Show More
@@ -11,6 +11,9 b' log = logging.getLogger(__name__)'
11
11
12 class LoginController(BaseController):
12 class LoginController(BaseController):
13
13
14 def __before__(self):
15 super(LoginController, self).__before__()
16
14 def index(self):
17 def index(self):
15 #redirect if already logged in
18 #redirect if already logged in
16 if c.hg_app_user.is_authenticated:
19 if c.hg_app_user.is_authenticated:
@@ -35,4 +38,5 b' class LoginController(BaseController):'
35 def logout(self):
38 def logout(self):
36 session['hg_app_user'] = AuthUser()
39 session['hg_app_user'] = AuthUser()
37 session.save()
40 session.save()
41 log.info('Logging out and setting user as Empty')
38 redirect(url('hg_home'))
42 redirect(url('hg_home'))
General Comments 0
You need to be logged in to leave comments. Login now