feat(auth): add admin password reset CLI command and reset password web UI (#347)

* feat(auth): add admin password reset CLI command and reset password web UI

* fix(auth): invalidate previous reset tokens and use AsyncLocalStorage for link capture
This commit is contained in:
Yiling-J
2026-08-25 14:35:33 +08:00
committed by GitHub
parent 8801d59b2e
commit 470a4bd6f7
43 changed files with 1361 additions and 6 deletions
@@ -22,13 +22,14 @@ test.describe('audio player e2e', () => {
await vp.clickPlayToggle()
await expect.poll(() => vp.isPaused(), { timeout: 5_000 }).toBe(false)
// Wait for 300ms. If the playhead froze (which happened under the bug where
// Wait for playhead to advance. If the playhead froze (which happened under the bug where
// it waited 1000ms for rVFC grace period), readoutFrame would still be 0.
// With the fix, the playhead should advance immediately.
await page.waitForTimeout(300)
await expect
.poll(async () => (await vp.snapshot()).readoutFrame, { timeout: 5_000 })
.toBeGreaterThan(0)
const afterPlay = await vp.snapshot()
expect(afterPlay.readoutFrame).toBeGreaterThan(0)
expect(afterPlay.currentTime).toBeGreaterThan(0)
})
})