Fix Devise parameter sanitizer for otp_attempt

This commit is contained in:
Robert Speicher 2015-05-04 16:02:33 -04:00
parent 125ee5262a
commit e512f770cd

View file

@ -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)