mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-05 13:41:36 +02:00
Fixes: - Fixed is_auth_enabled() returning None instead of False when setting doesn't exist (in both auth.py and routes/auth.py) - Fixed get_current_user() crashing when credentials is None - Added missing async_session patch in conftest.py for auth tests Backup/Restore - Added Users Support - Added include_users parameter to backup export - Users are exported with username, role, and is_active (passwords excluded for security) - Restore creates users with temporary passwords that must be changed Backend Tests - 16 New Auth Tests - test_auth_api.py with tests for: - Auth status endpoint - Auth setup (enable/disable) - Login flow (success, invalid credentials, auth disabled) - /me endpoint with/without token - User management (list, create, update, delete) - Auth disable Frontend Tests - 6 New Login Tests - LoginPage.test.tsx with tests for: - Form rendering - Input validation - Login submission - Loading states Documentation Updates - CHANGELOG.md/README.md: Added authentication feature description - Website (features.html): Added new "Optional Authentication" section - Wiki: Created authentication.md with full documentation - Wiki index: Added authentication to features list