diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-21 06:57:36 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-21 06:57:36 +0000 |
| commit | 02b1cf005cf3e1df64183d20ba42930eb2767a9f (patch) | |
| tree | e932c54d5260b0e6fda2b46be2a6ba1c3ee30434 /lib/users/auth/partners-auth.ts | |
| parent | d78378ecd7ceede1429359f8058c7a99ac34b1b7 (diff) | |
(대표님, 최겸) 설계메뉴추가, 작업사항 업데이트
설계메뉴 - 문서관리
설계메뉴 - 벤더 데이터
gtc 메뉴 업데이트
정보시스템 - 메뉴리스트 및 정보 업데이트
파일 라우트 업데이트
엑셀임포트 개선
기본계약 개선
벤더 가입과정 변경 및 개선
벤더 기본정보 - pq
돌체 오류 수정 및 개선
벤더 로그인 과정 이메일 오류 수정
Diffstat (limited to 'lib/users/auth/partners-auth.ts')
| -rw-r--r-- | lib/users/auth/partners-auth.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/users/auth/partners-auth.ts b/lib/users/auth/partners-auth.ts index 5418e2a8..ac0dec08 100644 --- a/lib/users/auth/partners-auth.ts +++ b/lib/users/auth/partners-auth.ts @@ -8,7 +8,7 @@ import crypto from 'crypto'; import { PasswordStrength, passwordResetRequestSchema, passwordResetSchema } from './validataions-password'; import { sendEmail } from '@/lib/mail/sendEmail'; import { analyzePasswordStrength, checkPasswordHistory, validatePasswordPolicy } from '@/lib/users/auth/passwordUtil'; - +import { headers } from 'next/headers'; export interface PasswordValidationResult { strength: PasswordStrength; @@ -73,7 +73,13 @@ export async function requestPasswordResetAction( }); // 재설정 링크 생성 - const resetLink = `${process.env.NEXTAUTH_URL}/auth/reset-password?token=${resetToken}`; + const headersList = await headers(); + const host = headersList.get('host') || 'localhost:3000'; + // 로그인 또는 서명 페이지 URL 생성 + // const baseUrl = `http://${host}` + const baseUrl = process.env.NEXT_PUBLIC_DMZ_URL || `https://partners.sevcp.com` + + const resetLink = `${baseUrl}/auth/reset-password?token=${resetToken}`; // 이메일 전송 await sendEmail({ |
