# HG changeset patch # User Marcin Kuzminski # Date 1274554178 -7200 # Node ID 5af2cd31c99be1bd0b012894f9ca5efc55c18912 # Parent b48ebda822a459e9c61496964a2af05895eb41bb logging info change on login form diff -r b48ebda822a4 -r 5af2cd31c99b pylons_app/model/forms.py --- a/pylons_app/model/forms.py Sat May 22 20:48:05 2010 +0200 +++ b/pylons_app/model/forms.py Sat May 22 20:49:38 2010 +0200 @@ -72,7 +72,6 @@ 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 @@ 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)