MysqlAuthUser use return username for case
This commit is contained in:
parent
1ada840bdc
commit
41fcc06200
@ -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"""
|
||||||
|
Loading…
Reference in New Issue
Block a user