Are you accepting sensitive user data? Passwords, credit card numbers, etc. By default, Rails stores all submitted parameters in plain text in the logs. This episode will show you how to filter this sensitive input so it doesn't show up in the log file.
# controllers/application.rb
filter_parameter_logging "password"
本文介绍如何在Rails应用中过滤日志中的敏感信息,如密码和信用卡号等,通过在Application控制器中设置filter_parameter_logging来保护用户数据。
1130

被折叠的 条评论
为什么被折叠?



