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: change email page need login

shuai7abbff727892
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',