epic-games: captcha on login: await notify (#195)
Adding async handle in captcha notify
This commit is contained in:
parent
9261be690c
commit
6bb1dca934
1 changed files with 2 additions and 2 deletions
|
|
@ -79,9 +79,9 @@ try {
|
||||||
await page.fill('#email', email);
|
await page.fill('#email', email);
|
||||||
await page.fill('#password', password);
|
await page.fill('#password', password);
|
||||||
await page.click('button[type="submit"]');
|
await page.click('button[type="submit"]');
|
||||||
page.waitForSelector('#h_captcha_challenge_login_prod iframe').then(() => {
|
page.waitForSelector('#h_captcha_challenge_login_prod iframe').then(async () => {
|
||||||
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.');
|
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.');
|
await notify('epic-games: got captcha during login. Please check.');
|
||||||
}).catch(_ => { });
|
}).catch(_ => { });
|
||||||
// handle MFA, but don't await it
|
// handle MFA, but don't await it
|
||||||
page.waitForURL('**/id/login/mfa**').then(async () => {
|
page.waitForURL('**/id/login/mfa**').then(async () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue