diff --git a/frontend/src/container/Login/index.tsx b/frontend/src/container/Login/index.tsx index 0fd6673844..61276ea3c3 100644 --- a/frontend/src/container/Login/index.tsx +++ b/frontend/src/container/Login/index.tsx @@ -111,6 +111,8 @@ function Login({ setFunc(value); }; + const { sso, canSelfRegister } = precheckResult; + const onSubmitHandler: React.FormEventHandler = async ( event, ) => { @@ -123,6 +125,11 @@ function Login({ return; } + if (precheckComplete && sso) { + window.location.href = precheckResult.ssoUrl || ''; + return; + } + setIsLoading(true); const response = await loginApi({ @@ -176,8 +183,6 @@ function Login({ ); }; - const { sso, canSelfRegister } = precheckResult; - return (