diff --git a/bun.lock b/bun.lock index 36b828f..8736447 100644 --- a/bun.lock +++ b/bun.lock @@ -21,7 +21,7 @@ "@biomejs/biome", ], "packages": { - "@atums/echo": ["@atums/echo@1.0.3", "", { "dependencies": { "date-fns-tz": "^3.2.0" } }, "sha512-WQ2d4oWTaE+6VeLIu2FepmZipdwUrM+SiiO5moHhSsP4P+MaQCjq5qp34nwB/vOHv2jd9UcBzy27iUziTffCjg=="], + "@atums/echo": ["@atums/echo@1.0.6", "", { "dependencies": { "date-fns-tz": "^3.2.0" } }, "sha512-2v0coX0Ptau6pjh4aTJDXMMJ2z/Q+0r8tvLokjeyUnLWGOPMwg+i4saBrkvDtHvQbNiq/NiEwMFLCxeIlxEyLQ=="], "@biomejs/biome": ["@biomejs/biome@1.9.4", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "1.9.4", "@biomejs/cli-darwin-x64": "1.9.4", "@biomejs/cli-linux-arm64": "1.9.4", "@biomejs/cli-linux-arm64-musl": "1.9.4", "@biomejs/cli-linux-x64": "1.9.4", "@biomejs/cli-linux-x64-musl": "1.9.4", "@biomejs/cli-win32-arm64": "1.9.4", "@biomejs/cli-win32-x64": "1.9.4" }, "bin": { "biome": "bin/biome" } }, "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog=="], diff --git a/logger.json b/logger.json index 521b3bc..15b2c23 100644 --- a/logger.json +++ b/logger.json @@ -5,6 +5,7 @@ "rotate": true, "maxFiles": 3, + "fileNameFormat": "yyyy-MM-dd", "console": true, "consoleColor": true, diff --git a/src/environment/mailer/templates/forgot-password.html b/src/environment/mailer/templates/forgot-password.html new file mode 100644 index 0000000..b018ef5 --- /dev/null +++ b/src/environment/mailer/templates/forgot-password.html @@ -0,0 +1,47 @@ + + + +
+ + +Hi {{displayName}},
+ +You requested a password reset for your account. Click the link below to reset your password:
+ + + +{{willExpire}} for security reasons.
+ +If you did not request this password reset, please ignore this email. Your password will remain unchanged.
+ +Questions? Contact {{supportEmail}}
+ +Best regards,
+ The {{companyName}} team
User ID: {{id}} | © {{currentYear}} {{companyName}}
+ + + + \ No newline at end of file diff --git a/src/environment/mailer/templates/register.html b/src/environment/mailer/templates/register.html index cd55ac0..499013f 100644 --- a/src/environment/mailer/templates/register.html +++ b/src/environment/mailer/templates/register.html @@ -11,89 +11,35 @@ max-width: 600px; margin: 0 auto; padding: 20px; - line-height: 1.6; - background-color: #1a1a1a; - color: #e0e0e0; - } - - h2 { - color: #4a9eff; - margin-bottom: 20px; + line-height: 1.5; } a { - color: #4a9eff; - } - - .button { - display: inline-block; - padding: 12px 24px; - background-color: #2d7a2d; - color: white; - text-decoration: none; - border-radius: 4px; - margin: 10px 0; - } - - .expiry-notice { - background-color: #2a2a2a; - border: 1px solid #444; - padding: 10px; - border-radius: 4px; - margin: 15px 0; - color: #ffa500; - } - - .fallback-url { - word-break: break-all; - background-color: #2a2a2a; - border: 1px solid #444; - padding: 8px; - border-radius: 4px; - font-family: monospace; - font-size: 12px; - color: #999; - } - - .footer { - margin-top: 30px; - padding-top: 20px; - border-top: 1px solid #444; - font-size: 12px; - color: #999; + color: #0066cc; } -Hi {{displayName}},
-Thanks for signing up! Please verify your email address to activate your account:
+Please verify your email address:
- + -{{willExpire}} for security reasons.
-If the button doesn't work:
-Copy and paste this link into your browser:
-Questions? Contact {{supportEmail}}
-Once verified, you'll have full access to your {{companyName}} account!
- -Questions? Reply to this email or contact us at {{supportEmail}}
+Best regards,
+ The {{companyName}} team
Best regards,
The {{companyName}} team
User ID: {{id}} | © {{currentYear}} {{companyName}}
-