- 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.ts | ||
| api-tokens.ts | ||
| auth.ts | ||
| claude-jobs.ts | ||
| ideas.ts | ||
| pairing.ts | ||
| pbis.ts | ||
| products.ts | ||
| profile.ts | ||
| questions.ts | ||
| sprints.ts | ||
| stories.ts | ||
| tasks.ts | ||
| todos.ts | ||