I have TFA setup on my account, and I created a set of backup/fallback codes. But I cannot find a way to use them. I click 'Can't acces your account?" button and it just says to email help@drupal.org for assistance.

I have enabled TFA on my Drupal account but I need to be able to use my backup codes. Where I work does not allow cell phones so I rely on codes to access. I do this for all of my Google accounts.

Last thing, how can you generate new backup codes?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Perignon created an issue. See original summary.

hestenet’s picture

It's very subtle, but the field does change to let you enter recovery codes once you hit the "can't access" button

Note the text change in this gif:
Recovery Code Gif

Perignon’s picture

Issue summary: View changes
FileSize
446.19 KB

Thanks for the animated gif! Thanks for going that extra mile!

Unfortunately, I do not get that option. I have tried four different browsers and three different operating systems (Chrome, Chrome Incognito, Firefox, IE, and Safari - Mac, Linux, and Windows).

I get this instead.

Maybe this is an account issue? I also cannot "turn off" TFA either. Nor can I do anything but setup a new TFA device?

hestenet’s picture

Well that is strange.... I'm going to ask around over here.

With respect to the second part of your question:

You can view unused recovery codes or generate new ones from:

https://www.drupal.org/user/[uid]/security/tfa

Profile -> Security Tab

Which should look like:
TFA tab

Perignon’s picture

Yeah that URL gives me this:

Perignon’s picture

For documentation purposes:

I have re-setup TFA access. And now I can see unused codes. I am still testing access to make sure I can get back into my account with my cell phone.

Perignon’s picture

So I am logged in right now in one browser but I cannot login in any other browser. Logging out right now I am toast.

I am getting this error when trying to login at another browser/session:

You have reached the threshold for TFA attempts. Please try again in 60 minutes.

hestenet’s picture

Mixologic’s picture

I cleared this out of the flood table, you should be able to try again.

Perignon’s picture

Trying now.

Perignon’s picture

Status: Active » Fixed

Awesome. Confirmation!

I was able to login with my TFA from my phone. I then stared a new session and was able to use a backup code. I can also now see the backup code is no longer available to use.

coltrane’s picture

Hi, I wanted to leave some context and a link to the issue to mitigate the underlying problems.

I believe the scenario of not seeing the fallback code input form is most likely a result of not actually having any fallback codes saved for an account. While you thought you saved fallback codes you probably didn't and so TFA isn't providing you an option to input something you don't have. I may be wrong but based on similar reports like this I think it's the most likely explanation. You were presented the fallback codes during TFA but by not actually submitting that step they were not saved to your account.

TFA module should make it hard for this scenario to happen. https://www.drupal.org/node/2489470 is about TFA setup form UX and the leading suggestion is to save TFA data on each step of the setup process.

Perignon’s picture

That could be true! Every TFA service (I use a lot of them) saves the codes once they are displayed.

But there also is the problem where I had zero management of my TFA settings when I did have it enabled. It would only prompt me to setup TFA again. So that still is another bug.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.