Files
sam-manage/resources/views/emails/user-password.blade.php
hskwon 85cbe23782 feat: [users] 사용자 등록 시 비밀번호 자동 생성 및 이메일 발송
- 사용자 등록 시 비밀번호 입력 필드 제거
- 임의 비밀번호 자동 생성 후 이메일 발송
- 사용자 수정 페이지에 비밀번호 초기화 버튼 추가
- 사용자 모달에 비밀번호 초기화 버튼 추가
- 사용자 모달 프로필 이미지 없을 때 이름 첫글자 표시 (한글 지원)
- UserPasswordMail 클래스 및 이메일 템플릿 추가
2025-12-01 10:50:16 +09:00

102 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>{{ $isNewUser ? '계정 생성 안내' : '비밀번호 초기화 안내' }}</title>
<style>
body {
font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
line-height: 1.6;
color: #333;
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
.header {
background: #3b82f6;
color: white;
padding: 20px;
text-align: center;
border-radius: 8px 8px 0 0;
}
.content {
background: #f9fafb;
padding: 30px;
border: 1px solid #e5e7eb;
border-top: none;
border-radius: 0 0 8px 8px;
}
.password-box {
background: #fff;
border: 2px dashed #3b82f6;
padding: 15px 20px;
text-align: center;
margin: 20px 0;
border-radius: 8px;
}
.password {
font-size: 24px;
font-weight: bold;
color: #1e40af;
letter-spacing: 2px;
font-family: monospace;
}
.warning {
background: #fef3c7;
border-left: 4px solid #f59e0b;
padding: 12px 16px;
margin: 20px 0;
font-size: 14px;
}
.info {
color: #6b7280;
font-size: 14px;
}
.footer {
text-align: center;
color: #9ca3af;
font-size: 12px;
margin-top: 30px;
}
</style>
</head>
<body>
<div class="header">
<h1>SAM 시스템</h1>
</div>
<div class="content">
<p>안녕하세요, <strong>{{ $user->name }}</strong>.</p>
@if($isNewUser)
<p>SAM 시스템에 계정이 생성되었습니다.</p>
@else
<p>비밀번호가 초기화되었습니다.</p>
@endif
<div class="password-box">
<p style="margin: 0 0 10px 0; color: #6b7280;">임시 비밀번호</p>
<div class="password">{{ $password }}</div>
</div>
<div class="warning">
<strong>보안 안내</strong><br>
로그인 반드시 비밀번호를 변경해 주세요.
</div>
<div class="info">
<p><strong>로그인 정보</strong></p>
<ul>
<li>이메일: {{ $user->email }}</li>
<li>로그인 URL: <a href="{{ config('app.url') }}">{{ config('app.url') }}</a></li>
</ul>
</div>
</div>
<div class="footer">
<p> 메일은 발신 전용입니다. 문의사항은 관리자에게 연락해 주세요.</p>
<p>&copy; {{ date('Y') }} SAM System. All rights reserved.</p>
</div>
</body>
</html>