From fbb3b7f05737f9571b04b0a8f4f15c0928de8545 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 7 Jul 2025 01:43:36 +0000
Subject: (대표님) 변경사항 20250707 10시 43분
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/login/login-form-shi.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'components/login/login-form-shi.tsx')

diff --git a/components/login/login-form-shi.tsx b/components/login/login-form-shi.tsx
index 6be8d5c8..862f9f8a 100644
--- a/components/login/login-form-shi.tsx
+++ b/components/login/login-form-shi.tsx
@@ -99,12 +99,12 @@ export function LoginFormSHI({
         
         try {
             // next-auth의 Credentials Provider로 로그인 시도
-            const result = await signIn('credentials', {
+            const result = await signIn('credentials-otp', {
                 email,
                 code: otp,
                 redirect: false, // 커스텀 처리 위해 redirect: false
             });
-            
+
             if (result?.ok) {
                 // 토스트 메시지 표시
                 toast({
@@ -204,9 +204,9 @@ export function LoginFormSHI({
                     <div className="mx-auto w-full flex flex-col space-y-6 sm:w-[350px]">
 
                         {/* Here's your existing login/OTP forms: */}
-                         {!otpSent ? (
-                        // ( */}
-                             <form onSubmit={handleSubmit} className="p-6 md:p-8"> 
+                         {/* {!otpSent ? ( */}
+          
+                             <form onSubmit={handleOtpSubmit} className="p-6 md:p-8"> 
                             {/* <form onSubmit={handleOtpSubmit} className="p-6 md:p-8"> */}
                                 <div className="flex flex-col gap-6">
                                     <div className="flex flex-col items-center text-center">
@@ -269,7 +269,7 @@ export function LoginFormSHI({
                                     </div>
                                 </div>
                             </form>
-                        ) 
+                        {/* ) 
                         
                         
                         : (
@@ -323,7 +323,7 @@ export function LoginFormSHI({
                                     </div>
                                 </div>
                             </form>
-                        )} 
+                        )}  */}
 
                         <div className="text-balance text-center text-xs text-muted-foreground [&_a]:underline [&_a]:underline-offset-4 hover:[&_a]:text-primary">
                             {t('termsMessage')} <a href="#">{t('termsOfService')}</a> {t('and')}
-- 
cgit v1.2.3

