core: fix judger login if builtin login disabled (#1155)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-05-08 04:54:39 +08:00
1 parent e3fa08f56c
commit 843828089e
2 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -221,7 +221,8 @@ export default class Hydro implements Session {
async login() {
log.info('[%s] Updating session', this.config.host);
const res = await this.post('login', {
uname: this.config.uname, password: this.config.password, rememberme: 'on',
uname: this.config.uname, password: this.config.password,
rememberme: 'on', judge: 'on',
});
const setCookie = res.headers['set-cookie'];
await this.setCookie(Array.isArray(setCookie) ? setCookie.join(';') : setCookie);