Auth not hashing passwd with scaffolded controller?
Hi all, Just curious. Currently i'm trying auth component following this tutorial: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited When I create a new user and submit it (scaffold mode), the password is not hashed - it display clear text user password. Is it actually auth behave like that on scaffold mode or it shouldn't? Thanks -- heryudi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Auth not hashing passwd with scaffolded controller?
Hi all, Just curious. Currently i'm trying auth component following this tutorial: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited When I create a new user and submit it (scaffold mode), the password is not hashed - it display clear text user password. Is it actually auth behave like that on scaffold mode or it shouldn't? Thanks -- heryudi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth not hashing passwd with scaffolded controller?
Once you turn on Auth, the passwords will get hashed automagically by Cake (assuming you have 'Auth' in your $components, and your beforeFilter logic is right). If you have existing rows that were added before you turned Auth on, you will likely need to update them so that they get stored in the DB as hashed values. On Feb 2, 11:54 pm, Heryudi Ganesha hery...@hangtuah.or.id wrote: Hi all, Just curious. Currently i'm trying auth component following this tutorial:http://www.studiocanaria.com/articles/cakephp_auth_component_users_gr... When I create a new user and submit it (scaffold mode), the password is not hashed - it display clear text user password. Is it actually auth behave like that on scaffold mode or it shouldn't? Thanks -- heryudi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth not hashing passwd with scaffolded controller?
I believe the issue exists because automatic scaffolding is not for production use, but pre-development to give you a sense of the possible interaction of the site and your model relations. Once you use something that is more of a production-ready feature (such as Auth), it will no longer work properly with scaffolding. You can use `cake bake` (example videos supplied on the CakePHP website) to create actual files that mimic a scaffolded website. On Feb 3, 8:50 am, Webweave webwe...@gmail.com wrote: Once you turn on Auth, the passwords will get hashed automagically by Cake (assuming you have 'Auth' in your $components, and your beforeFilter logic is right). If you have existing rows that were added before you turned Auth on, you will likely need to update them so that they get stored in the DB as hashed values. On Feb 2, 11:54 pm, Heryudi Ganesha hery...@hangtuah.or.id wrote: Hi all, Just curious. Currently i'm trying auth component following this tutorial:http://www.studiocanaria.com/articles/cakephp_auth_component_users_gr... When I create a new user and submit it (scaffold mode), the password is not hashed - it display clear text user password. Is it actually auth behave like that on scaffold mode or it shouldn't? Thanks -- heryudi- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth not hashing passwd with scaffolded controller?
After using 'cake bake' to generate user controller + views and trying add new username (with password), it works like a charm! All the passwords hashed beautifully. :) So it's true that auth component will not hash password in scaffoled mode. Thanks a lot. -- heryudi BrendonKoz wrote: I believe the issue exists because automatic scaffolding is not for production use, but pre-development to give you a sense of the possible interaction of the site and your model relations. Once you use something that is more of a production-ready feature (such as Auth), it will no longer work properly with scaffolding. You can use `cake bake` (example videos supplied on the CakePHP website) to create actual files that mimic a scaffolded website. On Feb 3, 8:50 am, Webweave webwe...@gmail.com wrote: Once you turn on Auth, the passwords will get hashed automagically by Cake (assuming you have 'Auth' in your $components, and your beforeFilter logic is right). If you have existing rows that were added before you turned Auth on, you will likely need to update them so that they get stored in the DB as hashed values. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---