rainloop-webmail icon indicating copy to clipboard operation
rainloop-webmail copied to clipboard

Enhancement to Two Factor Auth

Open namezk opened this issue 12 years ago • 9 comments

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.

namezk avatar Apr 10 '14 14:04 namezk

Ok

RainLoop avatar Apr 10 '14 15:04 RainLoop

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.

namezk avatar Apr 17 '14 04:04 namezk

Another bug introduced here, sometimes, I have to logout twice for it work.

namezk avatar Apr 17 '14 04:04 namezk

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?

namezk avatar Apr 17 '14 15:04 namezk

I can't understand when I need to clear the "don't ask" timeout?

RainLoop avatar Apr 17 '14 15:04 RainLoop

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.

namezk avatar Apr 17 '14 16:04 namezk

I understand it, when i need to clear this cookie?

RainLoop avatar Apr 17 '14 16:04 RainLoop

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?

namezk avatar Apr 17 '14 16:04 namezk

It works now! thanks.

namezk avatar Apr 17 '14 18:04 namezk