Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point what is the default algorithm to create passwords in CakePHP 3 ?

Hi Experts

Could you point what is the default algorithm to create passwords in CakePHP 3 ?

I need to create a mock user to start testing an  CakePHP 3 app - so a line must be included in the Users table
with a login and correspondent password.

Thanks in advance!
SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Hi Rob

Really I need to gain more in depht concepts about CakePHP.
I start using the material, it looks very didactical

If you know any other didatical material that you could inform also...
Given that's the case, go through their example applications. The blog tutorial covers everything you need to know in a very hands on approach, culminating with the authentication: https://book.cakephp.org/3.0/en/tutorials-and-examples/blog-auth-example/auth.html

You say you already have a cake installation. How is the user authentication being done now?
Since the bookmarker project on cakePHP's docs that you suggested me -  is very didactical and we could easily discuss about it,  I'm focusing on it.

My "thinking" line:

So I created the table Users and insert an user:
 User generated image
I only "guess" it uses a SHA1 algorithm - I obtained elsewhere the value that corresponds to "XXXX" - the password:
User generated image
User generated image
An try to use it:
User generated image
This error arises:
User generated image
The Cake's code:

User generated image
User generated image
Could you give me a guidance on where and how I'm misconcepting things?
(sorry if I'm abusive)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Rob

I'm studying what you suggested and Cake as a whole and will return ASAP.
Thank you Rob

After some more exercices I had a clearer overall comprehension and test it.