Fix TOTP codes not being filtered from logs during enabling/disabling (#11877)
Not a serious issue because they are meaningless past single use
This commit is contained in:
parent
3919571c39
commit
a4b60e9ba4
7 changed files with 13 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue