gog: check for reCAPTCHA on login; better info for eg

This commit is contained in:
Ralf Vogler 2023-01-29 20:25:54 +01:00
parent 0393a3998b
commit 21a4e06209
2 changed files with 12 additions and 5 deletions

View file

@ -84,7 +84,7 @@ try {
await page.fill('#password', password);
await page.click('button[type="submit"]');
page.waitForSelector('#h_captcha_challenge_login_prod iframe').then(() => {
console.log('Got a captcha! You may have to solve it in the browser if the NopeCHA extension fails to do so.');
console.error('Got a captcha during login (likely due to too many attempts)! You may solve it in the browser, get a new IP or try again in a few hours.');
notify('epic-games: got captcha during login. Please check.');
}).catch(_ => { });
// handle MFA, but don't await it