kvz / cakephp-rest-plugin

Discontinued: recent cakephp versions overlap functionality, there also is @ceeram's plugin. Painless REST server Plugin for CakePHP
http://kvz.io/blog/2010/01/13/cakephp-rest-plugin-presentation/
169 stars 37 forks source link

Suggestion: Warn users that LiveUsers (used for password hashing) is not a standard library #2

Closed justinvw closed 13 years ago

justinvw commented 13 years ago

The Auth beforeFilter() example you give uses LiveUser::hashPasswords() to hash password. However, most users would use the built-in hashPasswords function of the Auth component ($this->Auth->hashPasswords($data)).

It took me a couple of hours to figure out why Authentication wasn't working ;-). Anyway, thank you very much for the great plug-in!

kvz commented 13 years ago

Alright. My reasoning was I wanted to show that that's the place for custom authentication code. But I can see how that's confusing. Thanks, fixed!