- lib/auth.ts: hashPassword(password) geëxporteerd (bcrypt, rounds=12) - actions/auth.ts: resetPasswordAction met Zod-validatie (min 8, superRefine gelijkheid), prisma.user.update (password_hash + must_reset_password=false), redirect /dashboard - app/(auth)/reset-password/page.tsx: server guard (userId check + must_reset_password check) - app/(auth)/reset-password/reset-form.tsx: client form (nieuw wachtwoord + bevestiging) - __tests__/actions/auth.test.ts: 3 tests voor resetPasswordAction |
||
|---|---|---|
| .. | ||
| active-product.test.ts | ||
| auth.test.ts | ||
| claude-jobs-batch.test.ts | ||
| claude-jobs.test.ts | ||
| ideas-crud.test.ts | ||
| pairing.test.ts | ||
| products.test.ts | ||
| questions.test.ts | ||
| sprint-dates.test.ts | ||
| sprints-cascade.test.ts | ||
| story-claim.test.ts | ||
| tasks-dialog.test.ts | ||
| todos-promote-idea.test.ts | ||