Fix password hashing for Workers runtime

This commit is contained in:
巫凤萍
2026-08-07 11:20:31 +08:00
parent c926a6a874
commit bd9b0c3871
2 changed files with 3 additions and 1 deletions

View File

@@ -288,6 +288,7 @@ test("provides simple username-password login and three server-enforced roles",
assert.match(logoutRoute, /deleteSession/);
assert.match(logoutRoute, /clearSessionCookie/);
assert.match(auth, /PBKDF2/);
assert.match(auth, /PASSWORD_ITERATIONS = 100_000/);
assert.match(auth, /HttpOnly/);
assert.match(auth, /SameSite=Lax/);
assert.match(auth, /SELECT id FROM users WHERE role = 'super_admin' LIMIT 1/);