]> git.aero2k.de Git - sirius.git/commit
Apply login checks and redirect to the login
authorThorsten <mail@aero2k.de>
Fri, 6 Nov 2026 23:28:22 +0000 (00:28 +0100)
committerThorsten <mail@aero2k.de>
Fri, 6 Nov 2026 23:28:22 +0000 (00:28 +0100)
commit812ec2bf0b320e5ebdbb6843da4970c73a395274
treed11b5b415a568b83a7a431099ec8dd0194e80140
parentefb1c2be612a69f26b43d886b02322cea8b8cc4c
Apply login checks and redirect to the login

login_required sat above @route in printer_overview and printer_print,
so it was never applied and signed-out visitors got a server error.

Signed-out visitors now go to the login and back to the page they
wanted. /ext_api/ still answers 401, as programs can't use a login page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018fP7RjM2W3Sjtdj31Vk2WE
sirius/web/local_login.py
sirius/web/login.py
sirius/web/printer_overview.py
sirius/web/printer_print.py
sirius/web/test_local_login.py
sirius/web/test_printing.py