Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko655 committed Sep 18, 2021
1 parent b866456 commit 1834078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
PIXELA_USER_TOKEN: ${{ secrets.PIXELA_USER_TOKEN }}
run: |
pi pixel increment -u gecko655 -g birthdays
- name: Slack Notification on Failure
- name: Slack Notification on Failure
uses: rtCamp/[email protected]
if: failure()
Expand Down
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ if(!moment(getISOFormat(year, month, day)).isValid()) {
await page.waitForSelector('input[name=text], input[name=password]');
let mail_address_input = await page.$('input[name=text]');
if (mail_address_input != null) {
console.log('twitter is suspecting me!');
await page.type('input[name=text]', mail);
await page.click('#layers [aria-modal=true][role=dialog] [role=dialog] > :nth-child(2) > :nth-child(2) [role=button]')
}
await page.waitForSelector('input[name=password]');
await page.type('input[name=password]', password);
await page.click('#layers [aria-modal=true][role=dialog] [role=dialog] > :nth-child(2) > :nth-child(2) [role=button]')
console.log('2FA challenge')
console.log('2FA challenge');
const totpToken = authenticator.generate(totpSecret);
await page.waitForSelector('input[name=text]');
await page.type('input[name=text]', totpToken);
Expand Down

0 comments on commit 1834078

Please sign in to comment.