diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts index c6b8d359..c745ba1d 100644 --- a/ui/src/router/routes.ts +++ b/ui/src/router/routes.ts @@ -154,7 +154,9 @@ const routes: RouteNode[] = [ { path: 'users/change-email', page: 'pages/Users/ChangeEmail', - // TODO: guard this (change email when user not activated) ? + guard: async () => { + return guard.notLogged(); + }, }, { path: 'users/password-reset',