From 41fcc06200fbe9e8147c0280b98bad7d64bbf0ca Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Tue, 9 Jun 2015 16:42:28 +0200 Subject: [PATCH] MysqlAuthUser use return username for case --- cas_server/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_server/auth.py b/cas_server/auth.py index 4d847b8..cd40001 100644 --- a/cas_server/auth.py +++ b/cas_server/auth.py @@ -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"""