JohnDoe1999
JohnDoe1999

Reputation: 47

Symfony sfDoctrineGuard Password Encryption

I have a Symfony 1.4 app using sfDoctrineGuardPlugin for users.

I need to move these users to a new system. After going through the documentation and code, I'm having trouble understanding how Symfony stores/checks passwords.

I want my new system (CakePHP) to store and check passwords the same way the old one does, so that nobody has to change their password.

How would I go about this? Can someone post a simple example?

Upvotes: 1

Views: 927

Answers (1)

j0k
j0k

Reputation: 22756

I think you just have to dig into the code, when sfGuard generate the password (setPassword) and when sfGuard check the password (checkPasswordByGuard).

They use an algorithm (by default sha1) to store the password which is salted.

Upvotes: 3

Related Questions