Internal
Public Access
Implement comprehensive email verification and admin approval system for user registration. Users must verify their email before logging in, and admins must approve new users before they can access the system. Major features: - Email verification with UUID tokens (24hr expiry, one-time use) - Admin approval workflow via Django admin interface - Custom authentication backend enforcing verification and approval - Password change functionality for authenticated users - Enhanced profile page with proper styling and theme support - Collect first name, last name, and timezone during registration - Profile link added to header navigation Email notifications: - Verification email sent after registration - Admin notification when users need approval - Approval notification sent to users Security features: - Cryptographically secure UUID tokens - Token expiration and one-time use enforcement - Email enumeration protection - Custom JWT token validation for API access - Existing users auto-approved via data migration Templates added: - Email templates (verification, approval, admin notification) - Web templates (password change, verification pages) - Enhanced profile page with dark/light mode support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
35 lines
1.3 KiB
HTML
35 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
</head>
|
|
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
|
|
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 5px;">
|
|
<h2 style="color: #10B981; margin-top: 0;">Your Account Has Been Approved!</h2>
|
|
|
|
<p>Hi {{ user.first_name|default:user.username }},</p>
|
|
|
|
<p>Great news! Your KeepItGoing account has been approved by our team.</p>
|
|
|
|
<p>You can now log in and start using KeepItGoing to manage your tasks and stay organized.</p>
|
|
|
|
<div style="margin: 30px 0; text-align: center;">
|
|
<a href="{{ login_url }}"
|
|
style="background-color: #10B981; color: white; padding: 12px 24px;
|
|
text-decoration: none; border-radius: 5px; display: inline-block; font-weight: bold;">
|
|
Log In Now
|
|
</a>
|
|
</div>
|
|
|
|
<p>We're excited to have you on board!</p>
|
|
|
|
<hr style="margin: 30px 0; border: none; border-top: 1px solid #ddd;">
|
|
|
|
<p style="color: #666; font-size: 12px;">
|
|
If you have any questions, please don't hesitate to reach out to our support team.
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|