Show More
@@ -72,7 +72,6 b' class ValidAuth(formencode.validators.Fa' | |||
|
72 | 72 | if user: |
|
73 | 73 | if user.active: |
|
74 | 74 | if user.username == username and user.password == crypted_passwd: |
|
75 | log.info('user %s authenticated correctly', username) | |
|
76 | 75 | from pylons_app.lib.auth import AuthUser |
|
77 | 76 | auth_user = AuthUser() |
|
78 | 77 | auth_user.username = username |
@@ -80,6 +79,7 b' class ValidAuth(formencode.validators.Fa' | |||
|
80 | 79 | auth_user.is_admin = user.admin |
|
81 | 80 | session['hg_app_user'] = auth_user |
|
82 | 81 | session.save() |
|
82 | log.info('user %s is now authenticated', username) | |
|
83 | 83 | return value |
|
84 | 84 | else: |
|
85 | 85 | log.warning('user %s not authenticated', username) |
General Comments 0
You need to be logged in to leave comments.
Login now