mirror of https://gitee.com/answerdev/answer.git
fix(guard): Supplementary `IGNORE_PATH_LIST`
This commit is contained in:
parent
aaeca560e5
commit
031954520c
|
@ -11,7 +11,6 @@ const Index: FC = () => {
|
|||
const navigate = useNavigate();
|
||||
useEffect(() => {
|
||||
const token = searchParams.get('access_token');
|
||||
alert(`landing: ${token}`);
|
||||
guard.handleLoginWithToken(token, navigate);
|
||||
}, []);
|
||||
usePageTags({
|
||||
|
|
|
@ -33,7 +33,6 @@ const routes: RouteNode[] = [
|
|||
guard: () => {
|
||||
const gr = guard.shouldLoginRequired();
|
||||
if (!gr.ok) {
|
||||
alert(`LoginRequired: ${window.location.pathname}`);
|
||||
return gr;
|
||||
}
|
||||
return guard.notForbidden();
|
||||
|
|
|
@ -341,7 +341,6 @@ export const handleLoginWithToken = (
|
|||
getLoggedUserInfo().then((res) => {
|
||||
loggedUserInfoStore.getState().update(res);
|
||||
const userStat = deriveLoginState();
|
||||
alert(`userStat: ${JSON.stringify(userStat)}`);
|
||||
if (userStat.isNotActivated) {
|
||||
floppyNavigation.navigate(RouteAlias.inactive, {
|
||||
handler,
|
||||
|
|
Loading…
Reference in New Issue