1
0
Fork 1
forked from fedi/mastodon
mastodon/spec
Matt Jankowski 67dea31b0f 2FA controller cleanup (#2296)
* Add spec coverage for settings/two_factor_auth area

* extract setup method for qr code

* Move otp required check to before action

* Merge method only used once

* Remove duplicate view

* Consolidate creation of @codes for backup

* Move settings/2fq#recovery_codes to settings/recovery_codes#create

* Rename settings/two_factor_auth#disable to #destroy

* Add coverage for the otp required path on 2fa#show

* Clean up the recovery codes list styles

* Move settings/two_factor_auth to settings/two_factor_authentication

* Reorganize the settings two factor auth area

Updated to use a flow like:

- settings/two_factor_authentication goes to a #show view which has a button
  either enable or disable 2fa on the account
- the disable button turns off the otp requirement for the user
- the enable button cycles the user secret and redirects to a confirmation page
- the confirmation page is a #new view which shows the QR code for user
- that page posts to #create which verifies the code, and creates the recovery
  codes
- that create action shares a view with a recovery codes controller which can be
  used separately to reset codes if needed
2017-04-22 04:23:17 +02:00
..
controllers 2FA controller cleanup (#2296) 2017-04-22 04:23:17 +02:00
fabricators Refresh webfinger (#1323) 2017-04-15 03:16:05 +02:00
features Introduce capybara and first feature spec (#1801) 2017-04-15 01:21:02 +02:00
fixtures Fix #2108 - Fix gif uploads (#2171) 2017-04-19 23:21:00 +02:00
helpers Add tests for StreamEntriesHelper#rtl? (#2286) 2017-04-22 00:13:37 +02:00
javascript Add unit tests for https://github.com/tootsuite/mastodon/pull/1574 (#1584) 2017-04-12 17:16:59 +02:00
lib Clean up settings/preferences controller (#2237) 2017-04-21 03:26:52 +02:00
mailers Add digest e-mails 2017-03-04 00:00:48 +01:00
models User settings mutation (#2270) 2017-04-21 18:07:17 +02:00
presenters About page contact email (#1839) 2017-04-15 13:33:25 +02:00
requests Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
routing Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
services Fix possibility of unrightful webfinger redirect (#2147) 2017-04-19 17:28:35 +02:00
support/matchers/model add more tests to models 2017-04-05 00:29:56 +02:00
views Make file attachment on MediaAttachment optional (#1865) 2017-04-16 12:51:30 +02:00
rails_helper.rb Silence Devise deprecation warning about TestHelpers (#1840) 2017-04-15 13:30:57 +02:00
spec_helper.rb Add more tests for AtomSerializer (#2096) 2017-04-18 22:30:17 +02:00