From ba0f46aef99e166d6d0c4f4b150cee8b1366dc6e Mon Sep 17 00:00:00 2001
From: Bruce Bolt This will ensure that all users in an organisation who are not exempted from 2sv must set up 2sv on their next login. This will ensure that all users in an organisation who are not exempted from 2-step verification must set up 2-step verification on their next login. They will not be able to perform any actions in signon before this is set up. You are about to exempt this user from having 2 step verification on their account. This will remove any existing
- requirement to log in with, or set up 2 step verification. You are about to exempt this user from having 2-step verification on their account. This will remove any existing
+ requirement to log in with, or set up 2-step verification. Please provide a reason for granting this exemption above.Require 2sv for “<%= @organisation.name %>”
+Require 2-step verification for “<%= @organisation.name %>”
<%= form_tag organisation_path(@organisation), method: "put", :class => 'well remove-top-padding' do %>
This user's role is set to <%= @user.role %>. They are currently exempted from 2sv, meaning that their role cannot be changed as admins are required to have 2sv.
+This user's role is set to <%= @user.role %>. They are currently exempted from 2-step verification, meaning that their role cannot be changed as admins are required to have 2-step verification.
<% end %> <% if policy(current_user).mandate_2sv? && @user.persisted? %> diff --git a/test/integration/change_user_role_test.rb b/test/integration/change_user_role_test.rb index f10c5c5bd..24292a90f 100644 --- a/test/integration/change_user_role_test.rb +++ b/test/integration/change_user_role_test.rb @@ -29,7 +29,7 @@ def sign_in_as_and_edit_user(sign_in_as, user_to_edit) assert page.has_no_select?("Role") - assert page.has_text? "This user's role is set to #{user.role}. They are currently exempted from 2sv, meaning that their role cannot be changed as admins are required to have 2sv." + assert page.has_text? "This user's role is set to #{user.role}. They are currently exempted from 2-step verification, meaning that their role cannot be changed as admins are required to have 2-step verification." end end diff --git a/test/support/managing_two_sv_helpers.rb b/test/support/managing_two_sv_helpers.rb index 40082b17c..e360bf287 100644 --- a/test/support/managing_two_sv_helpers.rb +++ b/test/support/managing_two_sv_helpers.rb @@ -90,7 +90,7 @@ def user_can_be_exempted_from_2sv(signed_in_as, user_being_exempted, reason, exp end def fill_in_exemption_form(reason, expiry_date) - fill_in "Reason for 2sv exemption", with: reason + fill_in "Reason for 2-step verification exemption", with: reason fill_in_expiry_date(expiry_date) click_button "Save" end @@ -109,7 +109,7 @@ def assert_user_has_been_exempted_from_2sv(user, reason, expiry_date) assert_equal reason, user.reason_for_2sv_exemption assert_equal expiry_date, user.expiry_date_for_2sv_exemption - assert page.has_text? "User exempted from 2SV" + assert page.has_text? "User exempted from 2-step verification" assert page.has_text? "The user has been made exempt from 2-step verification for the following reason: #{reason}" end