therealssj / tfa

TFA 8.x fork
0 stars 0 forks source link

TFA setup not working properly #8

Open paraacha opened 8 years ago

paraacha commented 8 years ago

Once TFA has been enabled in a website, any user with "require tfa" permission is supposed to setup TFA for his account first. After the setup is done, he is supposed to use OTPs for subsequent logins to the website.

But I'm not able to setup TFA for my account. Here are the steps to reproduce the bug:

1) Login with the root user account. 2) Install and enable TFA & GA_LOGIN modules. 3) Enable TFA for the website from the module settings. 4) Logout from the website. 5) Login again with the root user account. 6) Since the user has not setup TFA for his account yet, he is asked to go to the setup page.
7) In the TFA setup page, the expected output should be this:

1

But instead here is what I'm getting:

2

Through experimentation, I've found out a way to setup TFA properly for my account:

1) Click the "Reset application" link & proceed accordingly. 2) Logout & Login again. 3) Go to the TFA setup page and click on "Disable TFA" link & proceed accordingly. 4) Go to the TFA setup page and click on "Enable TFA" link & proceed accordingly.

After following these additional steps, I'm able to use the TFA module as expected.