mirror of https://gitee.com/answerdev/answer.git
fix: change email page need login
This commit is contained in:
parent
4a123b933d
commit
7abbff7278
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue