diff --git a/remote_judger/src/providers/codeforces.ts b/remote_judger/src/providers/codeforces.ts index 8ec9977..e4985aa 100644 --- a/remote_judger/src/providers/codeforces.ts +++ b/remote_judger/src/providers/codeforces.ts @@ -169,11 +169,9 @@ export default class CodeforcesProvider implements IBasicProvider { } get loggedIn() { - return this.get('/enter').then(res => { + return this.get('/').then(res => { const html = res.text; - if (html.includes('Login into Codeforces')) return false; - if (html.length < 1000 && html.includes('Redirecting...')) { logger.debug('Got a redirect', html); return false; @@ -188,7 +186,7 @@ export default class CodeforcesProvider implements IBasicProvider { if (_39ce7) this.setCookie('39ce7', _39ce7); } - return true; + return html.includes('header-bell__img'); }); }