I have an app set up with Devise log in and I want to implement two factor authentication with Authy/Twilio. I have it set up where if the user goes to the path /enable_authy they can get a text-code to verify their account. I'm trying to make it so it's required to do this, not just a bonus.
My routes...
devise_for :users,
:controllers => { :omniauth_callbacks => "users/omniauth_callbacks"},
:path_names => {
:verify_authy => "/verify-token",
:enable_authy => "/enable_authy",
:verify_authy_installation => "/verify-installation"
}