]> cat aescling's git repositories - mastodon.git/commit
Add option to disable two factor auth in admin accounts panel. (#2584)
authorKaylee <kaylee@codethat.sucks>
Tue, 2 May 2017 19:07:12 +0000 (20:07 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 2 May 2017 19:07:12 +0000 (21:07 +0200)
commit7880671f3527b80de891053beaeae4a8a22c8c58
tree43f4cc6ef4f4b90e7d9e4a585f7e6c5c9470ffd0
parentb5eec3423044f66066d64bd5c9422f40113c543a
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!
app/controllers/admin/two_factor_authentications_controller.rb [new file with mode: 0644]
app/models/user.rb
app/views/admin/accounts/show.html.haml
config/locales/en.yml
config/routes.rb
spec/controllers/admin/two_factor_authentications_controller_spec.rb [new file with mode: 0644]
spec/models/user_spec.rb