Enhancement to Two Factor Auth
It would be really nice if you could include a checkbox to "save" the TFA auth, like Google, Facebook, Yahoo etc.. This way, if the user says "Trust this computer", they shouldn't be asked for TFA for the next 2 weeks, which is, in my opinion, a nice balance between security and convenience.
Thank you.
Ok
Thanks for implementing this feature; however, it's not working for me as expected: once I check the "don't ask again", I don't get the OTP again, EVEN after logging out, flushing my cookies and restarting the browser.
Another bug introduced here, sometimes, I have to logout twice for it work.
Hi there, now I'm seeing the opposite effect :) checking "Don't ask" has no effect; if I check it and log out, I still get asked for the code next time. Can you explain your understanding of how this should work?
I can't understand when I need to clear the "don't ask" timeout?
You should not clear the timeout unless it has been two weeks. I think Google and the others use a separate cookie when the user checks that box, and the next time the user tries to login, the application checks for that cookie, if present then no OTP.
I understand it, when i need to clear this cookie?
I'm not a programer, but here is what I think: If "don't ask" was checked, you shouldn't clear the OTP cookie when the user logs out. Next time the user tries to login, you check for presence of that cookie, if it's there, and if it's equal or less that two weeks old, don't ask for OTP, otherwise do. What do you think?
It works now! thanks.