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