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
@@ -80,7 +80,7 @@ export default class LuoguProvider implements IBasicProvider {
|
||||
|
||||
async ensureLogin() {
|
||||
if (await this.loggedIn) {
|
||||
this.getCsrfToken('/');
|
||||
await this.getCsrfToken('/');
|
||||
return true;
|
||||
}
|
||||
logger.info('retry login');
|
||||
|
||||
Reference in new issue
Block a user