MysqlAuthUser use return username for case

This commit is contained in:
Valentin Samir 2015-06-09 16:42:28 +02:00
parent 1ada840bdc
commit 41fcc06200

View File

@ -66,7 +66,7 @@ class MysqlAuthUser(DummyAuthUser):
curs = conn.cursor() curs = conn.cursor()
if curs.execute(settings.CAS_SQL_USER_QUERY, (username,)) == 1: if curs.execute(settings.CAS_SQL_USER_QUERY, (username,)) == 1:
self.user = curs.fetchone() self.user = curs.fetchone()
super(MysqlAuthUser, self).__init__(username) super(MysqlAuthUser, self).__init__(self.user['username'])
def test_password(self, password): def test_password(self, password):
"""test `password` agains the user""" """test `password` agains the user"""