fix: 清掉无用接口和样式,并收紧登录与工号边界

This commit is contained in:
2026-11-16 11:30:59 +08:00
parent 7381b49e4c
commit 5b83b7e415
15 changed files with 232 additions and 329 deletions
+1 -5
View File
@@ -579,14 +579,10 @@ def test_user_can_set_proxy_with_or_without_password() -> None:
account = db.get(Account, "6650000146")
assert account is not None
assert decrypt_secret(account.proxy_password_cipher) == "p@ss"
cleared = client.delete("/api/settings/proxy")
cleared = client.put("/api/settings/proxy", json={"scheme": "off"})
assert cleared.status_code == 200
assert cleared.json()["enabled"] is False
assert cleared.json()["scheme"] == "off"
off = client.put("/api/settings/proxy", json={"scheme": "off"})
assert off.status_code == 200
assert off.json()["enabled"] is False
assert off.json()["scheme"] == "off"
def test_user_can_set_course_workers() -> None: