Thursday, January 15, 2015

Re: CakePHP 2.0 authentication(login) without ctp files but other types

Hi John,

> Use the password hasher to hash your password, then save it instead of "123" and it should work.
So could I put hasshed password to table without create new user record?
I have read your link, but there is just creating user...

Besides users, lots of tests are able to be tested just by searching but not creating new record for those purposes.

Thanks, tech_me 


On Thursday, January 15, 2015 at 5:15:16 AM UTC+9, John Andersen wrote:
Use the password hasher to hash your password, then save it instead of "123" and it should work.

See the CakePHP book at this location for the password hasher:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords

Enjoy, John

On Sunday, 11 January 2015 13:52:07 UTC+2, tech_me wrote:
> If '123' is the actual data in your password field in the data record, it's very likely this is the problem you're having with logging in.
Maybe this is the problem;)

[snip]

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: