]> cat aescling's git repositories - mastodon.git/commit
Set packs on 2FA-related pages. Fixes #271.
authorDavid Yip <yipdw@member.fsf.org>
Wed, 20 Dec 2017 09:15:54 +0000 (03:15 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Wed, 20 Dec 2017 09:15:54 +0000 (03:15 -0600)
commitbf1eb0912c584318448bc327b347ee526a8dbb93
tree988bc228fd599baf97201a180bea37eb230c5a3b
parent6f11aa8383a6afc4ef1b82c25b5f933027278457
Set packs on 2FA-related pages.  Fixes #271.

Specifically, this commit:

- changes S::TFA::{Confirmations,RecoveryCodes}Controller to derive from
  S::BaseController, because this gives us the necessary actions and
  packs
- prepends set_pack to Auth::SessionsController's action chain so that
  it takes effect in time for render :two_factor
app/controllers/auth/sessions_controller.rb
app/controllers/settings/two_factor_authentication/confirmations_controller.rb
app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb