Fix Devise parameter sanitizer for otp_attempt
This commit is contained in:
parent
125ee5262a
commit
e512f770cd
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def configure_permitted_parameters
|
||||
devise_parameter_sanitizer.sanitize(:sign_in) { |u| u.permit(:username, :email, :password, :login, :remember_me, :otp_attempt) }
|
||||
devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username, :email, :password, :login, :remember_me, :otp_attempt) }
|
||||
end
|
||||
|
||||
def hexdigest(string)
|
||||
|
|
Loading…
Reference in a new issue