fix issue 1840

This commit is contained in:
Tim Richardson
2014-01-07 17:05:41 +11:00
parent 4b4ada4137
commit 40e5e42ecc
+1 -1
View File
@@ -2112,7 +2112,7 @@ class Auth(object):
success = False success = False
if row: if row:
userfield = self.settings.login_userfield or 'username' \ 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 is a service Ticket and RENEW flag respected
if ticket[0:3] == 'ST-' and \ if ticket[0:3] == 'ST-' and \
not ((row.renew and renew) ^ renew): not ((row.renew and renew) ^ renew):