Skip to content

Commit

Permalink
Fix Devise parameter sanitizer for otp_attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
rspeicher committed May 9, 2015
1 parent 125ee52 commit e512f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def view_to_html_string(partial)
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)
Expand Down

0 comments on commit e512f77

Please sign in to comment.