born05 / craft-twofactorauthentication

Craft plugin for two-factor or two-step login using Time Based OTP.
MIT License
36 stars 26 forks source link

Can't log in after activating 2FA #9

Closed jhubb-io closed 6 years ago

jhubb-io commented 6 years ago

Hey. I can't log in after activating 2FA. The process to activate works correctly then I log out. After logging in, I'm redirected to the 2FA input but clicking verify shows the progress indicator for about 200ms then nothing happens.

I've attached the logs. web-404s.log web.log

roelvanhintum commented 6 years ago

@jhubb-io did the verify/login-process request give any feedback? It should show a message.

RichardJong commented 6 years ago

Probably because you've enabled the debug toolbar for the Control Panel, experienced the same issue.

jlamb1 commented 6 years ago

Same thing for me - Activation worked correctly, I signed out, signing back in shows the 2fa prompt. Entering the code produces a 403 error in the console and nothing happens. I also had the debug toolbar enabled for the control panel. I can't get into my account

roelvanhintum commented 6 years ago

I’ll try and push a fix for this, this morning. I’m guessing it’s something stupid i overlooked.

@jlamb1 You can go into the database and remove the records from the twofactorauthentication_verify table. This will disable 2FA for those users.

roelvanhintum commented 6 years ago

Fixed in 2.0.0-beta.3

The debug bar triggered an extra request, which caused a logout.

roelvanhintum commented 6 years ago

see: dfce3375ed14699159885da815ea811062918014

jhubb-io commented 6 years ago

Excellent, thanks.