Y
Y
Yuri Matveenko2017-07-10 13:18:50
symfony
Yuri Matveenko, 2017-07-10 13:18:50

FOSUserBundle how to include salts? Why is a confirmation token needed?

Greetings. Downloaded and installed FOSUserBundle.
I noticed that in the database salt = NULL, how to enable it? The documentation doesn't say.
Thought I was doing something wrong. I watched the lesson on YouTube in English, did the same, but the salts are still empty. He has included. Maybe different versions of FOS?
And why is the confirmation_token needed? It's also empty, by the way.
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2017-07-10
@FanatPHP

Yes, these are different versions, but not FOS, but Symphony.
Now the salt is generated and stored along with the hash, using the password_hash() function.
Therefore, the contents of the salt field are currently ignored, and in the future, I think, will be removed.
By confirmation_token, I recommend checking after registration and before confirmation.
This field must be filled in only during this period, the rest of the time it must be empty.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question