feat(api): add full signup/login flow with email & profile, ENV support, and port fix #18

Merged
blakeridgway merged 6 commits from refactor/username into main 2025-09-09 13:35:03 +00:00
Showing only changes of commit 6c994db855 - Show all commits

View file

@ -9,9 +9,9 @@ class UserService:
if not username or not password:
raise ValueError("Username and password are required")
if len(username) < 3 or len(password) < 8:
if len(username) < 5 or len(password) < 12:
raise ValueError(
"Username must be at least 3 characters and password must be at least 8 characters."
"Username must be at least 5 characters and password must be at least 12 characters."
)
existing_user = User.query.filter_by(username=username).first()