Final Feature 9c #10
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Backend: - New endpoint: POST /api/auth/register - New endpoint: GET /api/auth/verify/{token} - Migration: Add email_verified, verification_token, verification_expires - Helper: send_email() for reusable SMTP - Validation: email format, password length (min 8), name - Auto-login after verification (returns session token) - Rate limit: 3 registrations per hour per IP Features: - Verification token valid for 24h - Existing users marked as verified (grandfather clause) - SMTP configured via .env (SMTP_HOST, SMTP_USER, SMTP_PASS) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>Component: - TrialBanner.jsx: Displays remaining trial days with urgency levels Features: - Calculates days left from profile.trial_ends_at - Three urgency levels: * Normal (>7 days): Accent blue, "Abo wählen" * Warning (≤7 days): Orange, "Abo wählen" * Urgent (≤3 days): Red + ⚠️, "Jetzt upgraden" - Auto-hides when no trial or trial ended - Responsive flex layout - Call-to-action button links to /settings?tab=subscription Integration: - Added to Dashboard after header greeting - Uses activeProfile from ProfileContext - Clean, non-intrusive design UX: - Clear messaging: "Trial endet in X Tagen" - Special case: "morgen" for 1 day left - Color-coded severity (blue → orange → red) - Prominent CTA button Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>Fixed build error where AuthContext was imported directly instead of using the useAuth hook. Changed from import { AuthContext } + useContext(AuthContext) to import { useAuth } + useAuth(). This was blocking the Docker build and production deployment of v9c. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>Modified run_migrations() to only process files matching pattern: \d{3}_*.sql This prevents utility scripts (check_features.sql) and manually applied migrations (v9c_*.sql) from being executed. Only properly numbered migrations like 003_add_email_verification.sql will be processed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1. Parse JSON error responses to extract 'detail' field Fixes: {"detail":"..."} shown as raw JSON instead of clean text 2. Redirect 'already_verified' to '/' instead of '/login' Fixes: Users land on empty page when already logged in 3. Change button text: "Jetzt anmelden" → "Weiter zum Dashboard" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>