Seems password has to be set with set_password...
authorMagnus Hagander <magnus@hagander.net>
Wed, 16 Sep 2009 15:08:15 +0000 (17:08 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 16 Sep 2009 15:08:15 +0000 (17:08 +0200)
pgweb/util/auth.py

index e140ef673f0d85926cdc472d6479faf6746f1c16..55f0bf56d9a285b512b974a03cf3ca986c63eb82 100644 (file)
@@ -30,7 +30,8 @@ class AuthBackend(ModelBackend):
                                # Value 1 in field 1 means the login succeeded. In this case,
                                # create a user in the django system, and migrate all settings
                                # we can think of.
-                               user = User(username=username, password=password, email=rows[0][3], first_name=rows[0][2])
+                               user = User(username=username, email=rows[0][3], first_name=rows[0][2])
+                               user.set_password(password)
                                user.save()
                                return user
                        # Any other value in field 1 means login failed, so tell django we did