cakephp/docs — pull request #1142 by ojtibi (2014-03-10 08:37:10+00:00)
Title: Improved 'Hashing passwords' example.

The previous example checked if an id was set in the model, and therefore may save passwords in plaintext if an id was set and a password field was submitted with form data. My change simply checks if there's a password field from the form data and hashes it.