Finish headless Debian operation and document CDN origin deployment

This commit is contained in:
Codex
2026-10-11 19:22:52 +08:00
parent ab4e4a4f79
commit 4b62c33ed9
5 changed files with 92 additions and 1 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ class AuthService:
with self.check_lock, self.transport.router.hold_route():
response = self.transport.request("GET", LOGIN_URL)
soup = BeautifulSoup(response.text, "html.parser")
form = {node.get("name"): node.get("value", "") for node in soup.select("input[type=hidden][name]")}
form = {node.get("name"): node.get("value", "") for node in soup.find_all("input", attrs={"type": "hidden", "name": True})}
if "lt" not in form or "execution" not in form:
raise ValueError("登录页面需要人工验证,请使用浏览器登录")
form.update(username=username, password=password, _eventId="submit")