Forums / Install & configuration / How to keep passwords from eZ 2.x?
ondra ilcik
Sunday 31 July 2005 3:26:03 pm
Hi,
I'm upgrading a site from ez2.x to ez3.6.1 and I need to keep old users password. I've imported users, then manually set password_hash_type to 4 in ezuser table and transferred their old passwords, but this does not work (it it not possible to login). Did I forgot to do or set something?
Thanks in advance!
Konrad Mazurkiewicz
Monday 01 August 2005 2:24:17 am
Hi, check in site.ini(append.php) HashType in UserSettings section.It should be probably md5_user.
Konrad
Monday 01 August 2005 3:46:21 am
Thanks for your reply.
The hash_type is set to md5_user, but this imho influences just new users. I've also set UpdateHash to false.
Afaik eZ2.x used mysql hash and in ez3.x the default hash function is md5.
I've created user dummy for testing purposes. In ezuser table he has set password_hash_type to 4 and password_hash to '710e7e2213ba44ca' (real password is 'dummy', this is its mysql hash). But I'm not able to login with this user.
Does someone knows why?
Thanks
Monday 01 August 2005 4:42:51 am
This is strange, i've imported about 1K users from 2.2 to 3.4 with setting password_hash_type to 4. In current config HashType is set to md5_user and all is working fine.