|
|
|
@ -3,7 +3,9 @@ module ActionDispatch::Routing
|
|
|
|
|
protected |
|
|
|
|
|
|
|
|
|
def devise_two_factor_authentication(mapping, controllers) |
|
|
|
|
resource :two_factor_authentication, :only => [:show, :update], :path => mapping.path_names[:two_factor_authentication], :controller => controllers[:two_factor_authentication] |
|
|
|
|
resource :two_factor_authentication, :only => [:show, :update, :resend_code], :path => mapping.path_names[:two_factor_authentication], :controller => controllers[:two_factor_authentication] do |
|
|
|
|
collection { get "resend_code" } |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|