diff options
author | Luke Bennett <lbennett@gitlab.com> | 2018-10-15 13:36:19 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-15 13:36:19 +0000 |
commit | 7cf19c0b816bf7bc146a7f634c65d2e7484f26e1 (patch) | |
tree | 1fd5af973b40f7793a9824765d961098a1c60faf /app/views/groups/settings/_two_factor_auth.html.haml | |
parent | 280a132e15c8e1f66487312584e734b108b00df7 (diff) | |
download | gitlab-ce-7cf19c0b816bf7bc146a7f634c65d2e7484f26e1.tar.gz |
Prioritize group settings, improve panel titles, disable submit without changes
Diffstat (limited to 'app/views/groups/settings/_two_factor_auth.html.haml')
-rw-r--r-- | app/views/groups/settings/_two_factor_auth.html.haml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/groups/settings/_two_factor_auth.html.haml b/app/views/groups/settings/_two_factor_auth.html.haml new file mode 100644 index 00000000000..5d3f1cbb279 --- /dev/null +++ b/app/views/groups/settings/_two_factor_auth.html.haml @@ -0,0 +1,16 @@ +- docs_link_url = help_page_path('security/two_factor_authentication', anchor: 'enforcing-2fa-for-all-users-in-a-group') +- docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: docs_link_url } + +%h5= _('Two-factor authentication') + +%p= s_('Check the %{docs_link_start}documentation%{docs_link_end}.').html_safe % { docs_link_start: docs_link_start, docs_link_end: '</a>'.html_safe } + +.form-group + .form-check + = f.check_box :require_two_factor_authentication, class: 'form-check-input' + = f.label :require_two_factor_authentication, class: 'form-check-label' do + %span= _('Require all users in this group to setup Two-factor authentication') +.form-group + = f.label :two_factor_grace_period, _('Time before enforced'), class: 'label-bold' + = f.text_field :two_factor_grace_period, class: 'form-control form-control-sm w-auto' + .form-text.text-muted= _('Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication') |