Fix lint errors
This commit is contained in:
parent
9b69ae8fc2
commit
c7463df4d4
|
@ -4,4 +4,4 @@
|
||||||
- if current_user.otp_module_disabled?
|
- if current_user.otp_module_disabled?
|
||||||
= render partial: 'settings/security/totp_setup', locals: { qr_svg: qr_svg }
|
= render partial: 'settings/security/totp_setup', locals: { qr_svg: qr_svg }
|
||||||
- else
|
- else
|
||||||
= render partial: 'settings/security/totp_enabled'
|
= render partial: 'settings/security/totp_enabled', locals: { recovery_code_count: recovery_code_count }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
%p Your account is set up to require the use of a one-time password in order to log in.
|
%p Your account is set up to require the use of a one-time password in order to log in.
|
||||||
%p You currently have #{@recovery_code_count} unused recovery codes.
|
%p You currently have #{recovery_code_count} unused recovery codes.
|
||||||
= link_to t('views.actions.remove'), destroy_user_2fa_path, class: 'btn btn-danger', method: 'delete',
|
= link_to t('views.actions.remove'), destroy_user_2fa_path, class: 'btn btn-danger', method: 'delete',
|
||||||
data: { confirm: t('views.settings.security.2fa.detach_confirm') }
|
data: { confirm: t('views.settings.security.2fa.detach_confirm') }
|
||||||
= link_to "Re-generate recovery codes", reset_user_recovery_codes_path, class: 'btn btn-primary', method: 'delete',
|
= link_to 'Re-generate recovery codes', reset_user_recovery_codes_path, class: 'btn btn-primary', method: 'delete',
|
||||||
data: { confirm: "Are you sure? This will disable your previous set of recovery codes." }
|
data: { confirm: 'Are you sure? This will disable your previous set of recovery codes.' }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
= render 'settings/security', qr_svg: @qr_svg
|
= render 'settings/security', qr_svg: @qr_svg, recovery_code_count: @recovery_code_count
|
||||||
|
|
||||||
- provide(:title, generate_title('Security Settings'))
|
- provide(:title, generate_title('Security Settings'))
|
||||||
- parent_layout 'user/settings'
|
- parent_layout 'user/settings'
|
||||||
|
|
Loading…
Reference in New Issue