Normalize setup admin usernames #448
No reviewers
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus!448
Loading…
Reference in a new issue
No description provided.
Delete branch "normalize-setup-admin-user"
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?
setup.pyletODYSSEUS_ADMIN_USERbe written exactly as provided, but the auth manager lowercases usernames when it checks passwords and creates sessions. That means a generatedAdminUseraccount is stored underAdminUser, then login looks foradminuserand misses it.This normalizes the setup-created username the same way the auth code does. It may not explain every case in #423, but it fixes a real mismatch in the generated-admin path.
Checked:
venv/bin/python -m py_compile setup.py tests/test_setup_admin_user.pyvenv/bin/python -m pytest -q tests/test_setup_admin_user.pygit diff --check origin/main...normalize-setup-admin-user