From f925bec716c07858526ba29d3f4635eb7d2134aa Mon Sep 17 00:00:00 2001 From: ZAMBAR Date: Mon, 25 Aug 2025 01:23:40 +0800 Subject: [PATCH] fix(login): removed auto-redirect when only 1 provider When there's only one provider, will not auto redirect. So that Register button can be shown. Signed-off-by: ZAMBAR --- apps/frontend/src/pages/auth/login/index.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/frontend/src/pages/auth/login/index.vue b/apps/frontend/src/pages/auth/login/index.vue index 5d634cd8..3de546b5 100644 --- a/apps/frontend/src/pages/auth/login/index.vue +++ b/apps/frontend/src/pages/auth/login/index.vue @@ -51,9 +51,6 @@ const colors: Record = { const login = useAsyncState( async () => { const data = await http.get('auth/login').json<{ providers: string[]; signup: boolean }>() - if (data.providers.length === 1) { - router.push({ path: `/auth/login/${data.providers[0]}`, query: route.query }) - } return data }, {