Skip to content

Commit eafa1c4

Browse files
committed
Merge pull request rails#4690 from jdutil/filter_password_confirmation
Add :password_confirmation as a filtered param by default.
2 parents f251437 + 521fedc commit eafa1c4

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Application < Rails::Application
4343
config.encoding = "utf-8"
4444
4545
# Configure sensitive parameters which will be filtered from the log file.
46-
config.filter_parameters += [:password]
46+
config.filter_parameters += [:password, :password_confirmation]
4747
4848
# Use SQL instead of Active Record's schema dumper when creating the database.
4949
# This is necessary if your schema can't be completely dumped by the schema dumper,

0 commit comments

Comments
 (0)