feat(auth): require email confirmation for new accounts

Updates the user registration and new account creation endpoints to require email confirmation.

- Sets the 'confirmed' flag to 'false' by default for all new user accounts.
- Generates a unique confirmation token for each new user.
- Logs the confirmation link to the console for development purposes.

This change ensures that users cannot log in without first verifying their email address, enhancing account security.
This commit is contained in:
2026-01-18 16:28:33 -05:00
parent a5a76743c7
commit 6c35393f1f
7 changed files with 92 additions and 14 deletions

View File

@@ -19,5 +19,8 @@ async def get_current_pricing(db: AsyncSession = Depends(get_db)):
return {
"price_per_gallon": float(pricing.price_for_customer),
"price_same_day": float(pricing.price_same_day) if pricing.price_same_day else 0.00,
"price_prime": float(pricing.price_prime) if pricing.price_prime else 0.00,
"price_emergency": float(pricing.price_emergency) if pricing.price_emergency else 0.00,
"date": pricing.date.isoformat() if pricing.date else None
}