From b36893610faef2e26a3b78eb4343d4ffa6ad5fd0 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Fri, 4 Sep 2026 09:23:26 +0900 Subject: [PATCH] =?UTF-8?q?260904=5F01=5FENH:=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=ED=99=94=EB=A9=B4=EC=97=90=20ip=EC=99=80=20?= =?UTF-8?q?=EC=9E=90=EB=A6=AC=EB=B2=88=ED=98=B8=20=EB=85=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(pages)/login/page.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/app/(pages)/login/page.tsx b/src/app/(pages)/login/page.tsx index 7fe9a3d..84d3081 100644 --- a/src/app/(pages)/login/page.tsx +++ b/src/app/(pages)/login/page.tsx @@ -9,17 +9,25 @@ import {useRouter} from "next/navigation"; import {apiError} from "@kri/common/http"; import {NONE_HTTP_ERROR} from "@kri/common/http"; import {useLoginMutation} from "@/query/auth"; +import {useInternalInfoQuery} from "@/query/internal"; +import {cn} from "@/lib/utils"; const LoginPage = () => { const router = useRouter(); const loginMutation = useLoginMutation(); + const internalInfoQuery = useInternalInfoQuery(true); const [error, setError] = useState(null); const [userId, setUserId] = useState(""); const [userPw, setUserPw] = useState(""); + const clientIp = internalInfoQuery.data?.clientIp || ""; + const clientId = internalInfoQuery.data?.clientId || ""; + const isCallSeat = clientIp.startsWith("10.10.15"); + const isCallSeatAndUnable = isCallSeat && clientId === ""; + const passwordInputRef = useRef(null); const tryLogin = async () => { @@ -107,7 +115,12 @@ const LoginPage = () => { ref={passwordInputRef} /> - +

+ IP: {clientIp} +

+

+ {isCallSeatAndUnable? "전화걸기 이용 불가(관리자에게 문의해 주세요)" : `자리번호: ${clientId}`} +

{error && (

{error} @@ -116,7 +129,7 @@ const LoginPage = () => {