From ee1138b39b9709871adcb97b915d5944cd2091c9 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 12 Nov 2025 15:07:59 -0500 Subject: Remove manual approval requirement for new accounts New accounts now default to 'active' status instead of 'pending'. Users can start using the service immediately after signup. --- Biz/PodcastItLater/Web.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Biz/PodcastItLater/Web.py') diff --git a/Biz/PodcastItLater/Web.py b/Biz/PodcastItLater/Web.py index 6d3cf0a..82f8a10 100644 --- a/Biz/PodcastItLater/Web.py +++ b/Biz/PodcastItLater/Web.py @@ -1182,19 +1182,18 @@ def index(request: Request) -> HomePage: def _handle_test_login(email: str, request: Request) -> Response: """Handle login in test mode.""" - # Special handling for demo account - auto-approve + # Special handling for demo account is_demo_account = email == "demo@example.com" user = Core.Database.get_user_by_email(email) if not user: - # Create new user with appropriate status - status = "active" if is_demo_account else "pending" - user_id, token = Core.Database.create_user(email, status=status) + # Create new user (defaults to active status) + user_id, token = Core.Database.create_user(email) user = { "id": user_id, "email": email, "token": token, - "status": status, + "status": "active", } elif is_demo_account and user.get("status") != "active": # Auto-activate demo account if it exists but isn't active -- cgit v1.2.3