3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix dashboard login redirect

This commit is contained in:
Dragory 2021-09-05 18:11:55 +03:00
parent b966c1fa5b
commit bd851c4d54
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -16,8 +16,8 @@ export const authGuard: NavigationGuard = async (to, from, next) => {
export const loginCallbackGuard: NavigationGuard = async (to, from, next) => { export const loginCallbackGuard: NavigationGuard = async (to, from, next) => {
if (to.query.apiKey) { if (to.query.apiKey) {
await RootStore.dispatch("auth/setApiKey", to.query.apiKey); await RootStore.dispatch("auth/setApiKey", { key: to.query.apiKey });
next("/dashboard"); window.location.href = "/dashboard";
} else { } else {
window.location.href = `/?error=noAccess`; window.location.href = `/?error=noAccess`;
} }