private
+ def set_pack
+ use_pack 'auth'
+ end
+
def require_otp_enabled
unless current_user.otp_enabled?
flash[:error] = t('webauthn_credentials.otp_required')
--- /dev/null
+import './settings';
+import './two_factor_authentication';
pack:
about:
admin: admin.js
- auth: settings.js
+ auth: auth.js
common:
filename: common.js
stylesheet: true
- content_for :page_title do
= t('auth.login')
-=javascript_pack_tag 'two_factor_authentication', integrity: true, crossorigin: 'anonymous'
-
- if @webauthn_enabled
= render partial: 'auth/sessions/two_factor/webauthn_form', locals: { hidden: @scheme_type != 'webauthn' }
.actions
= f.button :button, t('webauthn_credentials.add'), class: 'js-webauthn', type: :submit
-
-= javascript_pack_tag 'two_factor_authentication', integrity: true, crossorigin: 'anonymous'