Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(router): remove unnecessary guard for `password-reset` @github: #92

haitao(lj)9c2e05d280d7
diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts
index be7e61ac..7c56db23 100644
--- a/ui/src/router/routes.ts
+++ b/ui/src/router/routes.ts
@@ -160,20 +160,10 @@ const routes: RouteNode[] = [
{
path: 'users/password-reset',
page: 'pages/Users/PasswordReset',
- guard: async () => {
- return guard.activated();
- },
},
{
path: 'users/account-activation',
page: 'pages/Users/ActiveEmail',
- // guard: async () => {
- // const notActivated = guard.notActivated();
- // if (notActivated.ok) {
- // return notActivated;
- // }
- // return guard.notLogged();
- // },
},
{
path: 'users/account-activation/success',