fix: change email page need login

This commit is contained in:
shuai 2022-11-08 17:16:50 +08:00
parent 4a123b933d
commit 7abbff7278
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ const routes: RouteNode[] = [
{ {
path: 'users/change-email', path: 'users/change-email',
page: 'pages/Users/ChangeEmail', page: 'pages/Users/ChangeEmail',
// TODO: guard this (change email when user not activated) ? guard: async () => {
return guard.notLogged();
},
}, },
{ {
path: 'users/password-reset', path: 'users/password-reset',