52e3852129
- Add LocalUser model with bcrypt password hashing, email verification tokens, and password reset tokens - Add ALLOW_LOCAL_SIGNUP config flag (requires SMTP to be configured) - Add Stripe billing config fields (STRIPE_SECRET_KEY, etc.) - Add stripe_customer_id to UserProfile and stripe_price_id_monthly/ stripe_price_id_yearly to SubscriptionPlan - Create migration 018_add_local_users_and_billing - Add app/utils/local_auth.py: hash_password, verify_password, generate_token, is_token_expired, send_verification_email, send_password_reset_email, build_session_user - Add app/api/local_auth.py: signup, email verification, password reset endpoints plus signup/verify-email-sent/reset-password page routes - Add app/api/billing.py: Stripe Checkout, Customer Portal, and webhook endpoints; syncs subscription tier from webhook events - Update auth() to check LocalUser table before admin credentials fallback - Update login() to pass allow_signup context variable to template - Add signup.html, verify_email_sent.html, password_reset_form.html, billing_success.html templates (Alpine.js, Tailwind, WCAG 2.1 AA) - Update login.html to show 'Create account' link when signup enabled - Update pricing.html CTA buttons to use Stripe Checkout for paid tiers - Add docs/BillingSetup.md with setup guide, webhook config, compliance - Add tests/test_local_auth.py (42 tests) and tests/test_billing.py (31 tests); all 106 tests in the modified test suite pass - Add stripe>=7.0.0,<15.0.0 to requirements.txt Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
46 lines
2.3 KiB
HTML
46 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>DocuElevate - Subscription Activated</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
|
|
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
|
|
crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
</head>
|
|
<body class="bg-gray-100 min-h-screen flex items-center justify-center py-8">
|
|
<main class="bg-white rounded-lg shadow-lg p-8 max-w-md w-full text-center" role="main">
|
|
<div class="flex justify-center mb-6">
|
|
<img src="/static/images/logo_writing.svg" alt="DocuElevate Logo" class="h-16">
|
|
</div>
|
|
|
|
<div class="flex justify-center mb-4">
|
|
<div class="bg-green-100 rounded-full p-4">
|
|
<i class="fas fa-circle-check text-green-600 text-5xl" aria-hidden="true"></i>
|
|
</div>
|
|
</div>
|
|
|
|
<h1 class="text-2xl font-bold text-gray-800 mb-2">You're all set!</h1>
|
|
<p class="text-gray-600 mb-8">
|
|
Your subscription has been activated. Thank you for choosing DocuElevate!
|
|
</p>
|
|
|
|
<div class="space-y-3">
|
|
<a href="/subscription"
|
|
class="block w-full py-3 px-4 rounded-lg border-2 border-indigo-600 text-indigo-600 font-semibold hover:bg-indigo-50 transition focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
|
style="min-height:44px;display:flex;align-items:center;justify-content:center;"
|
|
>
|
|
<i class="fas fa-credit-card mr-2" aria-hidden="true"></i>Manage subscription
|
|
</a>
|
|
<a href="/upload"
|
|
class="block w-full py-3 px-4 rounded-lg bg-indigo-600 text-white font-semibold hover:bg-indigo-700 transition focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
|
style="min-height:44px;display:flex;align-items:center;justify-content:center;"
|
|
>
|
|
<i class="fas fa-arrow-right mr-2" aria-hidden="true"></i>Go to dashboard
|
|
</a>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|