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!
Showing
- app/controllers/admin/two_factor_authentications_controller.rb 18 additions, 0 deletions...ontrollers/admin/two_factor_authentications_controller.rb
- app/models/user.rb 6 additions, 0 deletionsapp/models/user.rb
- app/views/admin/accounts/show.html.haml 2 additions, 0 deletionsapp/views/admin/accounts/show.html.haml
- config/locales/en.yml 1 addition, 0 deletionsconfig/locales/en.yml
- config/routes.rb 4 additions, 0 deletionsconfig/routes.rb
- spec/controllers/admin/two_factor_authentications_controller_spec.rb 17 additions, 0 deletions...llers/admin/two_factor_authentications_controller_spec.rb
- spec/models/user_spec.rb 14 additions, 0 deletionsspec/models/user_spec.rb
Please register or sign in to comment