Skip to content

Commit

Permalink
Fix 2FA login issue.
Browse files Browse the repository at this point in the history
FB changed their 2FA login url. Without this change, Electron will open the 2FA login page using external broweser.
  • Loading branch information
alex-the-man committed Sep 26, 2020
1 parent a4052b9 commit fc1dbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ function createMainWindow(): BrowserWindow {
};

const isTwoFactorAuth = (url: string): boolean => {
const twoFactorAuthURL = 'https://www.facebook.com/checkpoint/start';
const twoFactorAuthURL = 'https://www.facebook.com/checkpoint';
return url.startsWith(twoFactorAuthURL);
};

Expand Down

0 comments on commit fc1dbee

Please sign in to comment.