Skip to content

Commit

Permalink
Pop up the error when logging in fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenvh1 committed Nov 18, 2024
1 parent 693d896 commit 57605a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/handlers/handleLoginRouting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export default async function handleLoginRouting(toState: State, store: Store) {
});
store.checkToken();
return Promise.reject({ redirect: { name: 'home' } });
} else if (toState.params.error) {
alert(JSON.parse(atob(toState.params.error)).msg);
}
// if no token is set, find the login method
const loginMethod = await store.loadLoginMethod();
Expand Down

0 comments on commit 57605a2

Please sign in to comment.