fix password digests

This commit is contained in:
evilchili
2025-10-04 13:27:38 -07:00
parent 7eb06b150e
commit 76e65def2c
2 changed files with 22 additions and 2 deletions
+3
View File
@@ -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"