From 40e5e42ecc1d337ef131e2a7cea2ff4671b08b37 Mon Sep 17 00:00:00 2001 From: Tim Richardson Date: Tue, 7 Jan 2014 17:05:41 +1100 Subject: [PATCH] fix issue 1840 --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 131b7a8e..0dbecb1e 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -2112,7 +2112,7 @@ class Auth(object): success = False if row: userfield = self.settings.login_userfield or 'username' \ - if 'username' in table_user.fields else 'email' + if 'username' in table.fields else 'email' # If ticket is a service Ticket and RENEW flag respected if ticket[0:3] == 'ST-' and \ not ((row.renew and renew) ^ renew):