Skip to content

Commit fcf4c7a

Browse files
authored
fix: use window.location.href for external OAuth redirect, rename oAuthlogin path to OAuthLogin
Fix OAuth login flow not working and incorrect naming in path.
2 parents be3ddee + 63cad6c commit fcf4c7a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web/server/vue-cli/src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const router = createRouter({
1919
component: () => import("@/views/Login")
2020
},
2121
{
22-
path: "/login/oAuthlogin/:provider",
22+
path: "/login/OAuthLogin/:provider",
2323
name: "oauthlogin",
2424
component: () => import("@/views/OAuthLogin")
2525
},

web/server/vue-cli/src/views/Login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function oauth(provider) {
272272
success.value = false;
273273
error.value = false;
274274
275-
router.push({ path: url });
275+
window.location.href = url;
276276
} else {
277277
errorMsg.value = `Server returned an invalid URL: ${url}`;
278278
error.value = true;

0 commit comments

Comments
 (0)