MysqlAuthUser use return username for case
This commit is contained in:
parent
1ada840bdc
commit
41fcc06200
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class MysqlAuthUser(DummyAuthUser):
|
|||
curs = conn.cursor()
|
||||
if curs.execute(settings.CAS_SQL_USER_QUERY, (username,)) == 1:
|
||||
self.user = curs.fetchone()
|
||||
super(MysqlAuthUser, self).__init__(username)
|
||||
super(MysqlAuthUser, self).__init__(self.user['username'])
|
||||
|
||||
def test_password(self, password):
|
||||
"""test `password` agains the user"""
|
||||
|
|
Loading…
Reference in a new issue