vjudge: poj: ensure login before submission

This commit is contained in:
undefined committed 2021-10-10 11:06:47 +08:00
1 parent ef42d1a553
commit cfc74f0fc5
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -200,6 +200,7 @@ export default class POJProvider implements IBasicProvider {
}
async submitProblem(id: string, lang: string, code: string, info) {
await this.ensureLogin();
const language = lang.includes('poj.') ? lang.split('poj.')[1] : '0';
const comment = setting.langs[lang].comment;
if (comment) {