Commit 41fcc062 authored by Valentin Samir's avatar Valentin Samir

MysqlAuthUser use return username for case

parent 1ada840b
......@@ -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"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment