This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/config
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
..
environments Send nil for SMTP_LOGIN or SMTP_PASSWORD if it was left blank in the envfile, otherwise Ruby still attempts auth even if SMTP_AUTH_METHOD is none (#2180) 2017-04-20 03:12:14 +02:00
initializers Removes timestamp from URLs. (#2185) 2017-04-20 03:54:24 +02:00
locales 2FA controller cleanup (#2296) 2017-04-22 04:23:17 +02:00
activerecord.en.yml Extract error messages to locale file (#2162) 2017-04-19 22:19:32 +02:00
activerecord.ja.yml Extract error messages to locale file (#2162) 2017-04-19 22:19:32 +02:00
application.rb Remove deprecated features at React v15.5 (#1905) 2017-04-21 20:05:35 +02:00
boot.rb Upgrade to Rails 5.0.0.1 2016-08-17 17:58:00 +02:00
cable.yml Add Heroku deployment support 2017-01-17 22:00:03 +11:00
database.yml Add env variable to disable prepared statements (#1293) 2017-04-09 05:46:32 +02:00
deploy.rb capistrano: link robots.txt (#1576) 2017-04-19 14:28:23 +02:00
environment.rb Upgrade to Rails 5.0.0.1 2016-08-17 17:58:00 +02:00
i18n-tasks.yml I18n health warnings (#1949) 2017-04-16 19:37:01 +02:00
navigation.rb 2FA controller cleanup (#2296) 2017-04-22 04:23:17 +02:00
puma.rb Do not set port for puma if it is bound to unix socket (#2289) 2017-04-22 01:22:20 +02:00
routes.rb 2FA controller cleanup (#2296) 2017-04-22 04:23:17 +02:00
secrets.yml Upgrade to Rails 5.0.0.1 2016-08-17 17:58:00 +02:00
settings.yml Add gif auto-play/pause preference 2017-04-17 12:14:03 +02:00
sidekiq.yml Adjust down the number of Sidekiq threads to 5 (default of 25 is way too high) 2016-03-25 14:20:31 +01:00