Skip to content

Commit

Permalink
Update idp error detection (#156)
Browse files Browse the repository at this point in the history
Should not only fix error detection on login, but prevent people from killing their 2FA account.

Can't test changes, as I don't have an ZIH account anymore.
  • Loading branch information
C0ntroller authored Jan 9, 2025
1 parent 5d21c63 commit ab8bf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contentScripts/login/idp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const cookieSettings: CookieSettings = {
}

async findCredentialsError (): Promise<boolean | HTMLElement | Element | null> {
return document.querySelector('.content p font[color="red"]')
return document.querySelector(".output--error") ?? document.querySelector('.content p font[color="red"]')
}

async loginFieldsAvailable (): Promise<boolean | LoginFields> {
Expand Down

0 comments on commit ab8bf14

Please sign in to comment.