about summary refs log tree commit diff
path: root/spec/controllers/settings/two_factor_authentications_controller_spec.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-18 02:48:40 +0200
committerGitHub <noreply@github.com>2019-09-18 02:48:40 +0200
commita4b60e9ba4874b9ab427bec41d8b2cd252ec4782 (patch)
tree81eb8efab6523e8ac3b713feed1b5d4e90b6d77b /spec/controllers/settings/two_factor_authentications_controller_spec.rb
parent3919571c3958f7808a7830b7d19d1605fc7c0ef9 (diff)
Fix TOTP codes not being filtered from logs during enabling/disabling (#11877)
Not a serious issue because they are meaningless past single use
Diffstat (limited to 'spec/controllers/settings/two_factor_authentications_controller_spec.rb')
-rw-r--r--spec/controllers/settings/two_factor_authentications_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/settings/two_factor_authentications_controller_spec.rb b/spec/controllers/settings/two_factor_authentications_controller_spec.rb
index f7c628756..922231ded 100644
--- a/spec/controllers/settings/two_factor_authentications_controller_spec.rb
+++ b/spec/controllers/settings/two_factor_authentications_controller_spec.rb
@@ -91,7 +91,7 @@ describe Settings::TwoFactorAuthenticationsController do
           true
         end
 
-        post :destroy, params: { form_two_factor_confirmation: { code: '123456' } }
+        post :destroy, params: { form_two_factor_confirmation: { otp_attempt: '123456' } }
 
         expect(response).to redirect_to(settings_two_factor_authentication_path)
         user.reload
@@ -105,7 +105,7 @@ describe Settings::TwoFactorAuthenticationsController do
           false
         end
 
-        post :destroy, params: { form_two_factor_confirmation: { code: '057772' } }
+        post :destroy, params: { form_two_factor_confirmation: { otp_attempt: '057772' } }
 
         user.reload
         expect(user.otp_required_for_login).to eq(true)