about summary refs log tree commit diff
path: root/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-08-30 17:26:18 +0200
committerThibaut Girka <thib@sitedethib.com>2020-08-30 17:26:18 +0200
commita68ec50e4e38898e88a7dcc33bd0032adc946dda (patch)
tree8137b48a716e05424ca544210d86e91818085ba7 /app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
parenta340e653df30a90910675f09284059055a598d46 (diff)
Adapt 2FA changes to glitch-soc's theming system
Diffstat (limited to 'app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb')
-rw-r--r--app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb b/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
index a19c604f3..ee5392785 100644
--- a/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
+++ b/app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb
@@ -85,6 +85,10 @@ module Settings
 
       private
 
+      def set_pack
+        use_pack 'auth'
+      end
+
       def require_otp_enabled
         unless current_user.otp_enabled?
           flash[:error] = t('webauthn_credentials.otp_required')