Show More
@@ -11,6 +11,9 b' log = logging.getLogger(__name__)' | |||
|
11 | 11 | |
|
12 | 12 | class LoginController(BaseController): |
|
13 | 13 | |
|
14 | def __before__(self): | |
|
15 | super(LoginController, self).__before__() | |
|
16 | ||
|
14 | 17 | def index(self): |
|
15 | 18 | #redirect if already logged in |
|
16 | 19 | if c.hg_app_user.is_authenticated: |
@@ -35,4 +38,5 b' class LoginController(BaseController):' | |||
|
35 | 38 | def logout(self): |
|
36 | 39 | session['hg_app_user'] = AuthUser() |
|
37 | 40 | session.save() |
|
41 | log.info('Logging out and setting user as Empty') | |
|
38 | 42 | redirect(url('hg_home')) |
General Comments 0
You need to be logged in to leave comments.
Login now