Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-03-01 19:28:15 +0300
committerDouwe Maan <douwe@gitlab.com>2018-03-01 19:28:15 +0300
commit9e852340fb2effbe7bc502026e99d374775747d3 (patch)
treee3378c8b7f706263a6808334a409925315d88f84 /spec/features/profiles
parentc37cbb3125d5c1542371ff72c5ec7d76e3d2261b (diff)
Removing the two factor check when the user sets a new password
Diffstat (limited to 'spec/features/profiles')
-rw-r--r--spec/features/profiles/password_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/profiles/password_spec.rb b/spec/features/profiles/password_spec.rb
index 1d7700b6767..f9c6ff90ca1 100644
--- a/spec/features/profiles/password_spec.rb
+++ b/spec/features/profiles/password_spec.rb
@@ -134,5 +134,15 @@ describe 'Profile > Password' do
expect(current_path).to eq new_user_session_path
end
+
+ context 'when global require_two_factor_authentication is enabled' do
+ it 'needs change user password' do
+ stub_application_setting(require_two_factor_authentication: true)
+
+ visit profile_path
+
+ expect(current_path).to eq new_profile_password_path
+ end
+ end
end
end