mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: luogu: wait for csrf token before submit
This commit is contained in:
1 parent
b1c63ddd6c
commit
ca55695498
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/vjudge",
|
"name": "@hydrooj/vjudge",
|
||||||
"version": "1.4.9",
|
"version": "1.4.10",
|
||||||
"description": "Submit problems to remote oj",
|
"description": "Submit problems to remote oj",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export default class LuoguProvider implements IBasicProvider {
|
|||||||
|
|
||||||
async ensureLogin() {
|
async ensureLogin() {
|
||||||
if (await this.loggedIn) {
|
if (await this.loggedIn) {
|
||||||
this.getCsrfToken('/');
|
await this.getCsrfToken('/');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
logger.info('retry login');
|
logger.info('retry login');
|
||||||
|
|||||||
Reference in new issue
Block a user