1
0
Fork 0
forked from fedi/mastodon
mastodon/app/views
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
..
about Add crossorigin="anonymous" to about (#2272) 2017-04-21 18:06:43 +02:00
accounts Remove unused view files in accounts/ (#2153) 2017-04-19 17:19:23 +02:00
activitypub Add AS2 format to RABL files 2017-02-06 17:00:55 -08:00
admin Link to profile/feed/salmon from admin/accounts show page (#2186) 2017-04-20 04:00:02 +02:00
api Adds version to about/more and API (#2181) 2017-04-21 03:30:59 +02:00
auth Add recovery code support for two-factor auth (#1773) 2017-04-15 13:26:03 +02:00
authorize_follow Simplify renders in views (#2084) 2017-04-18 17:15:30 +02:00
errors Make Reporting admin section translatable (#1549) 2017-04-12 17:11:49 +02:00
follower_accounts Add meta tags for OGP to following & follow page (#2052) 2017-04-19 17:17:32 +02:00
following_accounts Add meta tags for OGP to following & follow page (#2052) 2017-04-19 17:17:32 +02:00
home Merge branch 'pause-gif' of git://github.com/patf/mastodon into patf-pause-gif 2017-04-18 01:25:50 +02:00
kaminari Pagination improvements (#1445) 2017-04-11 01:11:41 +02:00
layouts Use default locale for html lang in layouts (#2212) 2017-04-20 13:09:31 +02:00
notification_mailer Simplify renders in views (#2084) 2017-04-18 17:15:30 +02:00
oauth Open authorized application in a new window (#2250) 2017-04-21 16:44:14 +02:00
remote_follow Adding remote follow button 2017-01-01 19:54:34 +01:00
settings 2FA controller cleanup (#2296) 2017-04-22 04:23:17 +02:00
shared Instance helper to replace site title helper (#2038) 2017-04-18 00:16:32 +02:00
stream_entries Use local_time gem for timezone replacement (#2174) 2017-04-21 18:19:59 +02:00
tags Use site title on tags#show page (#1802) 2017-04-15 02:37:20 +02:00
user_mailer Add Indonesian (Bahasa Indonesia / id) translation (#2200) 2017-04-21 19:16:26 +02:00
well_known Clean up well-known routes/controllers (#1649) 2017-04-13 13:09:07 +02:00