diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-08-30 17:26:18 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-08-30 17:26:18 +0200 |
commit | a68ec50e4e38898e88a7dcc33bd0032adc946dda (patch) | |
tree | 8137b48a716e05424ca544210d86e91818085ba7 /app/controllers | |
parent | a340e653df30a90910675f09284059055a598d46 (diff) |
Adapt 2FA changes to glitch-soc's theming system
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/settings/two_factor_authentication/webauthn_credentials_controller.rb | 4 |
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') |