From 1cbcb40bbae9169834e40d90c4a5b1fe70595774 Mon Sep 17 00:00:00 2001 From: Alex Man Date: Sat, 26 Sep 2020 01:36:37 -0700 Subject: [PATCH] Fix 2FA login issue. FB changed their 2FA login url. Without this change, Electron will open the 2FA login page using external browser. --- source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.ts b/source/index.ts index aa75103b3..352a628e5 100644 --- a/source/index.ts +++ b/source/index.ts @@ -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); };