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>
40 lines
1.6 KiB
HTML
40 lines
1.6 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: #2c3e50; margin-top: 0;">Verify Your Email Address</h2>
|
|
|
|
<p>Hi{% if user.first_name %} {{ user.first_name }}{% endif %},</p>
|
|
|
|
<p>Thank you for registering with KeepItGoing! Please verify your email address by clicking the button below:</p>
|
|
|
|
<div style="margin: 30px 0; text-align: center;">
|
|
<a href="{{ verification_url }}"
|
|
style="background-color: #3B82F6; color: white; padding: 12px 24px;
|
|
text-decoration: none; border-radius: 5px; display: inline-block; font-weight: bold;">
|
|
Verify Email Address
|
|
</a>
|
|
</div>
|
|
|
|
<p>Or copy and paste this link into your browser:</p>
|
|
<p style="word-break: break-all; color: #3B82F6; background-color: #e9ecef; padding: 10px; border-radius: 3px;">
|
|
{{ verification_url }}
|
|
</p>
|
|
|
|
<p style="margin-top: 30px;">
|
|
<small style="color: #666;">This link will expire in {{ expiry_hours }} hours.</small>
|
|
</p>
|
|
|
|
<hr style="margin: 30px 0; border: none; border-top: 1px solid #ddd;">
|
|
|
|
<p style="color: #666; font-size: 12px;">
|
|
If you didn't create an account with KeepItGoing, you can safely ignore this email.
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|