Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User is directly getting access to site without asking for code #150

Open
DhanashreeDorage opened this issue Jul 12, 2018 · 4 comments
Open

Comments

@DhanashreeDorage
Copy link

I am using rails 5.2 and two_factor_authentication 2.1.1. I am following exact steps mentioned in https://github.com/Houdini/two_factor_authentication/blob/master/README.md and https://www.rubydoc.info/gems/two_factor_authentication/1.1.5. When user signs in it get direct access to site without asking for code. It worked once and all of a sudden stopped working.

@IsaacOliveira
Copy link

I am having the same issue here, it worked in the first time but never again

@DhanashreeDorage
Copy link
Author

DhanashreeDorage commented Jul 13, 2018

Currently its working for me I added create_direct_otp method to my user model and made this true config.delete_cookie_on_logout = true in devise.rb file.

But if you just make config.delete_cookie_on_logout = false this true and don't add create method to user model it does not work.

@IsaacOliveira
Copy link

The config.delete_cookie_on_logout = true was enough for me, thanks for the help, it's working now

@mindtonic
Copy link

+1 config.delete_cookie_on_logout = true -- That's all you need to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants