PortBlog.API/PortBlog.API/Views/Email/OtpEmailTemplate.cshtml
Bangara Raju Kottedi 3a7edb23c7 Add JWT, OTP, and caching features
Upgraded projects to .NET 9.0 and added new projects `KBR.Cache`, `KBR.Shared`, and `KBR.Shared.Lite` to the solution. Introduced JWT authentication and OTP handling with new models, services, and configuration options. Updated database schema with new entities `Users` and `RefreshTokens`, and added migrations for schema changes. Implemented caching strategies using `AppDistributedCache` with support for in-memory, SQL Server, and Redis. Enhanced email handling with `MailHelpers` for domain replacement. Updated controllers, repositories, and configuration files to support new features.
2025-11-22 06:52:59 +05:30

68 lines
1.8 KiB
Plaintext

@model PortBlog.API.Models.OtpMailModel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>OTP Verification</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
background-color: #f7f8fa;
font-family: 'Segoe UI', Arial, sans-serif;
margin: 0;
padding: 0;
color: #333;
}
.container {
background-color: #ffffff;
max-width: 500px;
margin: 40px auto;
padding: 30px;
border-radius: 10px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
h2 {
color: #0078D7;
margin-bottom: 10px;
}
p {
font-size: 15px;
line-height: 1.6;
}
.otp {
display: inline-block;
background-color: #0078D7;
color: #ffffff;
padding: 12px 24px;
font-size: 20px;
font-weight: bold;
letter-spacing: 4px;
border-radius: 6px;
margin: 20px 0;
}
.footer {
font-size: 12px;
color: #999;
text-align: center;
margin-top: 30px;
}
</style>
</head>
<body>
<div class="container">
<h2>OTP Verification</h2>
<p>Hello @Model.Name,</p>
<p>Your One-Time Password (OTP) for verification is:</p>
<div class="otp">@Model.OtpCode</div>
<p>This OTP will expire in <strong>@Model.ExpiryMinutes minutes</strong>.</p>
<p>If you did not request this, please ignore this email.</p>
<div class="footer">
&copy; @DateTime.Now.Year Portfolio. All rights reserved.
</div>
</div>
</body>
</html>