Updates to sending user details
This commit is contained in:
116
map/app/templates/email/login-details.html
Normal file
116
map/app/templates/email/login-details.html
Normal file
@@ -0,0 +1,116 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Your Login Details</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.container {
|
||||
background-color: #f9f9f9;
|
||||
border-radius: 8px;
|
||||
padding: 30px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.logo {
|
||||
color: #a02c8d;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.content {
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.credentials-box {
|
||||
background-color: #f0f0f0;
|
||||
padding: 15px;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.credential-item {
|
||||
margin: 10px 0;
|
||||
}
|
||||
.credential-label {
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
width: 100px;
|
||||
}
|
||||
.credential-value {
|
||||
font-family: monospace;
|
||||
font-size: 16px;
|
||||
color: #2c3e50;
|
||||
}
|
||||
.login-button {
|
||||
display: inline-block;
|
||||
background-color: #a02c8d;
|
||||
color: white;
|
||||
padding: 12px 24px;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.info {
|
||||
color: #3498db;
|
||||
font-size: 14px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">{{APP_NAME}}</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h2>Your Login Details</h2>
|
||||
<p>Hello {{USER_NAME}},</p>
|
||||
<p>Here are your login credentials for {{APP_NAME}}:</p>
|
||||
|
||||
<div class="credentials-box">
|
||||
<div class="credential-item">
|
||||
<span class="credential-label">Email:</span>
|
||||
<span class="credential-value">{{USER_EMAIL}}</span>
|
||||
</div>
|
||||
<div class="credential-item">
|
||||
<span class="credential-label">Password:</span>
|
||||
<span class="credential-value">{{PASSWORD}}</span>
|
||||
</div>
|
||||
<div class="credential-item">
|
||||
<span class="credential-label">Role:</span>
|
||||
<span class="credential-value">{{USER_ROLE}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>You can log in using the link below:</p>
|
||||
<p style="text-align: center;">
|
||||
<a href="{{LOGIN_URL}}" class="login-button">Login to {{APP_NAME}}</a>
|
||||
</p>
|
||||
|
||||
<p class="info">💡 For security reasons, we recommend changing your password after your first login.</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>This email was sent from {{APP_NAME}} at {{TIMESTAMP}}</p>
|
||||
<p>If you have any questions, please contact your administrator.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
17
map/app/templates/email/login-details.txt
Normal file
17
map/app/templates/email/login-details.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
Login Details - {{APP_NAME}}
|
||||
|
||||
Hello {{USER_NAME}},
|
||||
|
||||
Here are your login credentials for {{APP_NAME}}:
|
||||
|
||||
Email: {{USER_EMAIL}}
|
||||
Password: {{PASSWORD}}
|
||||
Role: {{USER_ROLE}}
|
||||
|
||||
You can log in at: {{LOGIN_URL}}
|
||||
|
||||
For security reasons, we recommend changing your password after your first login.
|
||||
|
||||
---
|
||||
This email was sent from {{APP_NAME}} at {{TIMESTAMP}}
|
||||
If you have any questions, please contact your administrator.
|
||||
Reference in New Issue
Block a user