purple-facebook icon indicating copy to clipboard operation
purple-facebook copied to clipboard

"Invalid username or password (401)" with 2FA enabled

Open tuxmaster5000 opened this issue 5 years ago • 19 comments

I only get the error: (17:18:12) connection: Connection error on 0x5562b073dc10 (reason: 2 description: Invalid username or password (401)) When I use my facebook password, then I get an new pin via SMS, but after enter the pin, the error will shown again.

tuxmaster5000 avatar May 02 '19 15:05 tuxmaster5000

Same here, not sure why. Probably Facebook changed something?

stumyp avatar May 15 '19 19:05 stumyp

+1

ViperGeek avatar May 30 '19 14:05 ViperGeek

Yeah I'm getting this too

joestandring avatar Jun 03 '19 17:06 joestandring

I've been getting "invalid username or password (401)" for weeks now, however in order to test I tried re-entering my password (I have 2FA enabled) and after I disabled 2FA it worked just fine. Maybe something changed in FB's 2FA process.

Reproduction steps (with 2FA enabled on FB account:)

  • Enter username and password
  • FB responds with a message saying to expect an SMS login code
  • In my case, no code was received.
  • If you do receive a code, enter it into the password field and reconnect.
  • Note the error message "invalid username or password (401)"

Fix steps (when 2FA is enabled):

  • Disable 2FA in Facebook
  • Enter real password into Pidgin's FB password prompt
  • Note you are now logged in

zyphlar avatar Jun 10 '19 00:06 zyphlar

Same issue here with 2FA enabled

languitar avatar Jun 16 '19 12:06 languitar

Same issue with 2FA enabled

isakrubin avatar Jun 18 '19 12:06 isakrubin

I'm willing to bet this is related to the newer 2fa auth flow found at #445, which I couldn't implement at the time as it wasn't deployed. That issue "fixed itself" with a server-side fix of app password support.

So pretty sure the flow of entering SMS code as the password is dead, but have y'all tried app passwords? https://www.facebook.com/settings?tab=security&section=per_app_passwords&view

dequis avatar Jun 18 '19 13:06 dequis

I have the same problem, but I don't have 2FA authentication enabled. I'm using app passwords and even created a fresh one.

marcelvb avatar Jun 18 '19 15:06 marcelvb

@marcelvb Try not using app passwords?

dequis avatar Jun 18 '19 15:06 dequis

I thought I already tried, but I tried again just now, and it works.

marcelvb avatar Jun 18 '19 15:06 marcelvb

Thank you! That's good to know, so we simultaneously have broken old style 2fa auth flow and broken app passwords regardless of 2fa. Fun.

The latter sounds like a server bug to me (not the first time it happens), former is likely our fault for being out of date, and i'll have to get around to implement that at some point (I hope it applies to my account these days, these staggered rollouts are annoying)

dequis avatar Jun 18 '19 15:06 dequis

Same thing starting from tonight

alexolog avatar Jun 19 '19 04:06 alexolog

Setting a new app password worked for me ( while still using 2FA )

isakrubin avatar Jun 19 '19 06:06 isakrubin

I created a new app password (again), and this time the new app password works.

marcelvb avatar Jun 19 '19 09:06 marcelvb

With the app password function it will work for me to.

tuxmaster5000 avatar Jun 19 '19 09:06 tuxmaster5000

Not so easy to generate app password when you have disabled your FB account and only kept messenger active (yes it is possible to do so) Any workarounds in this case?

gbil avatar Jul 03 '19 06:07 gbil

gbil: what happens when you visit https://www.messenger.com or https://www.facebook.com/settings ?

just reactivated 2fa and used an app password, works fine for me now too. thanks everyone.

zyphlar avatar Jul 03 '19 19:07 zyphlar

gbil: what happens when you visit https://www.messenger.com or https://www.facebook.com/settings ?

just reactivated 2fa and used an app password, works fine for me now too. thanks everyone.

short version: I had to re-enable my account to enable 2fa with a 3rd party app (eg. freeotp) and generate an app password in between to make it work

long version: with fb disabled it was still sending me app password via SMS which I couldn't use anymore in pidgin as discussed here. When I tried to login to FB to generate an app password or to login to the messenger webpage, it was requesting me additional authentication which I couldn't get because 1. generator via FB app with FB disabled wouldn't work 2. if I selected to get a code via SMS it wouldn't sent it !!!! So I had to re-enable my FB account just to enable 2fa with a 3rd party app (for future use if possible) and generate an app password for pidgin

I guess FB doesn't really care much for people like me who disabled their FB account and only kept messenger

gbil avatar Jul 06 '19 18:07 gbil

I can confirm app password without 2FA stopped working, and it did work before. Turning back to regular password did make it work again for me

p0358 avatar Sep 13 '19 20:09 p0358