Use expect
params wrapper for more "auth" and "2FA" "controllers" (#33717)
This commit is contained in:
parent
e44b78413a
commit
a1d9c3fb99
8 changed files with 77 additions and 10 deletions
|
@ -38,7 +38,7 @@ module Settings
|
|||
private
|
||||
|
||||
def confirmation_params
|
||||
params.require(:form_two_factor_confirmation).permit(:otp_attempt)
|
||||
params.expect(form_two_factor_confirmation: [:otp_attempt])
|
||||
end
|
||||
|
||||
def prepare_two_factor_form
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue