fix password digests
This commit is contained in:
1 parent
7eb06b150e
commit
76e65def2c
2 files changed
+22
-2
No files matched your search
@@ -123,6 +123,9 @@ def test_search(db):
|
||||
def test_password(db):
|
||||
user = db.save(examples.User(name="john", email="john@foo", password="fnord"))
|
||||
|
||||
# make sure we don't compute the digest on an existing digest
|
||||
user = db.save(user)
|
||||
|
||||
assert ":" in user.password
|
||||
assert user.password != "fnord"
|
||||
|
||||
|
||||
Reference in new issue
Block a user