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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user