projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
322da0d
)
Seems password has to be set with set_password...
author
Magnus Hagander
<magnus@hagander.net>
Wed, 16 Sep 2009 15:08:15 +0000
(17:08 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Wed, 16 Sep 2009 15:08:15 +0000
(17:08 +0200)
pgweb/util/auth.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/util/auth.py
b/pgweb/util/auth.py
index e140ef673f0d85926cdc472d6479faf6746f1c16..55f0bf56d9a285b512b974a03cf3ca986c63eb82 100644
(file)
--- a/
pgweb/util/auth.py
+++ b/
pgweb/util/auth.py
@@
-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