about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorKaylee <kaylee@codethat.sucks>2017-05-02 20:07:12 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-05-02 21:07:12 +0200
commit7880671f3527b80de891053beaeae4a8a22c8c58 (patch)
tree43f4cc6ef4f4b90e7d9e4a585f7e6c5c9470ffd0 /config/routes.rb
parentb5eec3423044f66066d64bd5c9422f40113c543a (diff)
Add option to disable two factor auth in admin accounts panel. (#2584)
* Add option to disable two factor auth in admin accounts panel.
Closes #2578

* Add @mjankowski's suggestions.
* Moves destroy actions behind User#disable_two_factor!
* Adds spec coverage for Admin:TwoFactorAuthenticationsController and User#disable_two_factor!
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 9adaffcaf..1492f99fb 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -89,6 +89,10 @@ Rails.application.routes.draw do
       resource :suspension, only: [:create, :destroy]
       resource :confirmation, only: [:create]
     end
+
+    resources :users, only: [] do
+      resource :two_factor_authentication, only: [:destroy]
+    end
   end
 
   get '/admin', to: redirect('/admin/settings', status: 302)