U3 password-reset (frontend en documentatie): wachtwoord vergeten en nieuw wachtwoord kiezen

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 19:24:54 +01:00
co-authored by Claude Sonnet 5.5
parent c8e23826c3
commit 9532b4a92c
12 changed files with 563 additions and 1 deletions
+23
View File
@@ -153,6 +153,27 @@ const loginRoute = createRoute({
component: LoginPage,
});
const forgotPasswordRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/forgot-password',
beforeLoad: ({ context }) => {
if (context.auth.isAuthenticated) {
throw redirect({ to: '/dashboard' });
}
},
component: lazyPage(() => import('@/features/auth/pages/ForgotPasswordPage'), 'ForgotPasswordPage'),
});
const resetPasswordRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/reset-password',
validateSearch: (search: Record<string, unknown>): { uid?: string; token?: string } => ({
uid: typeof search.uid === 'string' ? search.uid : undefined,
token: typeof search.token === 'string' ? search.token : undefined,
}),
component: lazyPage(() => import('@/features/auth/pages/ResetPasswordPage'), 'ResetPasswordPage'),
});
const setupRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/setup',
@@ -268,6 +289,8 @@ const accessDeniedRoute = createRoute({
export const routeTree = rootRoute.addChildren([
indexRoute,
loginRoute,
forgotPasswordRoute,
resetPasswordRoute,
setupRoute,
inviteCompleteRoute,
accessDeniedRoute,