api 재활용2

This commit is contained in:
wallace
2025-11-28 14:27:35 +09:00
parent c91dd4a30f
commit c021303182
2 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ export default function LoginPage() {
.split('; ')
.find(row => row.startsWith('token='))
?.split('=')[1];
if (savedToken && cookieToken && savedToken === cookieToken) {
// 토큰이 유효한지 확인
apiService.getCurrentUser()

View File

@@ -135,10 +135,10 @@ export default function ChangePasswordModal({ open, onClose, onSubmit, showVerif
setError("이메일을 입력해 주세요.");
return;
}
setIsSending(true);
setError(null);
try {
await apiService.sendPasswordReset(email);
setRequireCode(true);
@@ -167,7 +167,7 @@ export default function ChangePasswordModal({ open, onClose, onSubmit, showVerif
type="text"
value={code}
onChange={(e) => setCode(e.target.value)}
className="h-10 flex-1 rounded-[8px] border border-input-border bg-white px-3 text-[16px] leading-[1.5] text-neutral-700 placeholder:text-text-placeholder-alt outline-none"
className="h-10 flex-1 rounded-[8px] border border-input-border bg-white px-3 text-[16px] leading-normal text-neutral-700 placeholder:text-text-placeholder-alt outline-none"
placeholder="인증번호를 입력해 주세요."
/>
<button
@@ -182,10 +182,10 @@ export default function ChangePasswordModal({ open, onClose, onSubmit, showVerif
setError("인증번호를 입력해 주세요.");
return;
}
setIsVerifying(true);
setError(null);
try {
await apiService.verifyPasswordResetCode(email, code);
setIsVerified(true);