From f2a0a34f0d589029436822ab84e984792a193f81 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 22 Mar 2024 16:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A2=9E=E5=8A=A0=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E8=AE=A4=E8=AF=81-debug-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app/(auth)/login/user-login-button.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app/(auth)/login/user-login-button.tsx b/app/app/(auth)/login/user-login-button.tsx index 4dbc17e23..4862ce310 100644 --- a/app/app/(auth)/login/user-login-button.tsx +++ b/app/app/(auth)/login/user-login-button.tsx @@ -43,9 +43,11 @@ export default function UserLoginButton() { redirect: false, }); } + console.log("0000000000000", result); setLoading(false); if (!result?.error) { - window.location.href = result?.url || "/"; + window.location.href = + result?.url && result.url.includes("verify") ? result.url : "/"; } else setError(true); };