Forums / Developer / password_hash_type values and their meaning
James Ward
Wednesday 22 October 2003 12:35:39 pm
What are the possible values for password_hash_type in the ezuser table (3.2-2) and what does each value represent? I am attempting to migrate users from my an ez 2.2 site manually and I assume I can use the old 16 character password hash if I set this value correctly.
working at www.wardnet.com blogging at www.jamesward.ca
Gunnstein Lye
Thursday 23 October 2003 8:53:52 am
You will find the definitions at the top of kernel/classes/datatypes/ezuser/ezuser.php. You could perhaps use 1 or 4, but I haven't checked that.
Jan Borsodi
Thursday 23 October 2003 10:46:36 pm
eZ publish 2.2 used mysql password hashing, so if you want to import old users you have use 4 as the password_hash_type. Once the user logs in the password hash will be changed to whatever is set as the sites hash type.
Types 1 to 3 are md5 hashes where 2 is the recommended.
Type 5 is for entering passwords in plain text, this is useful for manually changing the password if a user have forgot it. Again the hash will change once the user logs in.
-- Amos Documentation: http://ez.no/ez_publish/documentation FAQ: http://ez.no/ez_publish/documentation/faq