Mercurial > public > src > rhodecode
diff pylons_app/model/forms.py @ 201:5af2cd31c99b
logging info change on login form
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 20:49:38 +0200 |
parents | 7109d15c6813 |
children | 351013049742 |
line wrap: on
line diff
--- 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)