# HG changeset patch # User Marcin Kuzminski # Date 2010-05-22 18:49:38 # Node ID 5af2cd31c99be1bd0b012894f9ca5efc55c18912 # Parent b48ebda822a459e9c61496964a2af05895eb41bb logging info change on login form diff --git a/pylons_app/model/forms.py b/pylons_app/model/forms.py --- a/pylons_app/model/forms.py +++ b/pylons_app/model/forms.py @@ -72,7 +72,6 @@ class ValidAuth(formencode.validators.Fa if user: if user.active: if user.username == username and user.password == crypted_passwd: - log.info('user %s authenticated correctly', username) from pylons_app.lib.auth import AuthUser auth_user = AuthUser() auth_user.username = username @@ -80,6 +79,7 @@ class ValidAuth(formencode.validators.Fa auth_user.is_admin = user.admin session['hg_app_user'] = auth_user session.save() + log.info('user %s is now authenticated', username) return value else: log.warning('user %s not authenticated', username)