기존: 브라우저 → 외부 API 서버(api.codebridge-x.com) 호출
변경: 브라우저 → MNG 자체 엔드포인트(/esign/sign/{token}/api/*) 호출
- EsignPublicController에 getContract/sendOtp/verifyOtp API 추가
- auth.blade.php에서 외부 API 호출을 MNG 자체 API로 변경
- EsignOtpMail Mailable + 이메일 템플릿 추가
- CSRF 예외에 esign/sign/*/api/* 추가
- 로컬/서버 환경 모두에서 동작
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
52 lines
2.9 KiB
PHP
52 lines
2.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>인증 코드</title>
|
|
</head>
|
|
<body style="margin: 0; padding: 0; background-color: #f5f5f5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;">
|
|
<table width="100%" cellpadding="0" cellspacing="0" style="padding: 40px 20px;">
|
|
<tr>
|
|
<td align="center">
|
|
<table width="600" cellpadding="0" cellspacing="0" style="background-color: #ffffff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
|
|
<tr>
|
|
<td style="background-color: #2563eb; padding: 32px 40px; text-align: center;">
|
|
<h1 style="margin: 0; color: #ffffff; font-size: 24px; font-weight: 600;">인증 코드</h1>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding: 40px;">
|
|
<p style="margin: 0 0 16px; font-size: 16px; color: #333;">안녕하세요, <strong>{{ $signerName }}</strong>님.</p>
|
|
<p style="margin: 0 0 24px; font-size: 15px; color: #555; line-height: 1.6;">
|
|
전자계약 서명을 위한 인증 코드입니다.<br>
|
|
아래 코드를 입력해 주세요.
|
|
</p>
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center" style="padding: 16px 0;">
|
|
<div style="display: inline-block; background-color: #f8fafc; border: 2px solid #e5e7eb; border-radius: 8px; padding: 20px 40px;">
|
|
<span style="font-size: 36px; font-weight: 700; letter-spacing: 12px; color: #2563eb;">{{ $otpCode }}</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p style="margin: 24px 0 0; font-size: 13px; color: #999; line-height: 1.6;">
|
|
이 코드는 5분간 유효합니다. 본인이 요청하지 않았다면 이 메일을 무시해 주세요.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="background-color: #f8fafc; padding: 24px 40px; text-align: center; border-top: 1px solid #e5e7eb;">
|
|
<p style="margin: 0; font-size: 12px; color: #999;">
|
|
본 메일은 SAM 전자계약 시스템에서 자동 발송되었습니다.
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|