Статус: COMPLETED
Структурированная сводка для этой задачи не записана. Показан сохранённый результат без изменений.
The auth and home-screen app (PWA) code works and is now tested. python3 -m unittest tests.test_mobile_auth -v passes: 34 ran, 1 skipped. The skip is expected: the system python3 has no FastAPI, so a second test re-runs the real-app tests with the console's venv Python instead, and those pass. The full suite passes too (239 tests, 3 skipped). This includes the HttpSmokeTests test that was failing at the end of the last task.
Apache Basic Auth is unchanged. The app stays in its current mode, where Apache is the only login and app sessions are off. The scheduler is off: there is no scheduler table in the live database and no timer. Nothing was sent to anyone.
What the tests check (tests/test_mobile_auth.py; no network, no real secrets, only temporary databases):
Fixes I made
app/pwa.py: the version tag now also covers the icon code. Before, an icon change would have kept the same long-cached address, so phones would have kept showing the old icon.app/main.py: opening /login in the current mode no longer creates an empty data/auth.db.tests/test_review_queue.py: HttpSmokeTests now sends the security token, which was the cause of its failure. This is a small change to an older test outside the files you named. I made it because it's the same CSRF behaviour this task covers./tmp/auth-backup/.Docs: docs/mobile-and-auth.md describes the current setup, what is tested, the changes above, how to roll back, and the migration steps. I ran the user-management commands from the steps against a throwaway database.
Decisions for you
sudo systemctl restart lead-generation. The restart is safe because the login setup doesn't change.[truncated]
Ожидает вашего решения: принять, вернуть на доработку или отложить.