-
Notifications
You must be signed in to change notification settings - Fork 270
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
How should I integrate Devise two factor authentication with custom sessions controller? #60
Comments
Any Update on it? |
Sorry for long response. class Devise::TwoFactorAuthenticationController < DeviseController
prepend_before_filter :authenticate_scope!
before_filter :prepare_and_validate, :handle_two_factor_authentication And all this methods are here: Could you please try to integrate them into your controller? However, I'm looking at your session controller. Why do you really need custom session controller? |
Well, I am using user authentication with Devise and other database operations using RestClient apis. |
Please check this recipe: Does that helps you? |
I close this issue for now, please reopen it if you have any questions. |
I integrated the Houdini two factor authentication with existing rails application.
First I doesn't have any custom sessions_controller then the two_factor_authentication is working fine.
But whereas I written custom create action in Sessions Controller then it doesn't authenticated by two_factor_authentication.
Here is the custom code for create action of Sessions Controller.
Model code of user.rb:
I know if we are customizing the create action of Sessions Controller then we should call the two_factor_authentication. I tried to invoke this in controller but it throws an error.
So my question how should i integrate the two_factor_authentication with custom create action of Session Controller?
The text was updated successfully, but these errors were encountered: