mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix judger login if builtin login disabled (#1155)
This commit is contained in:
1 parent
e3fa08f56c
commit
843828089e
2 files changed
+6
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user