import users whose passwords are hashed with crypt()
Gunstick
Joined: 2007-01-06
Posts: 5 |
![]() |
Hi I have a userbase of around 8000 people which I would like to import into gallery2. My current idea is to make the 8000 createUser calls and give the crypt string as hashedpassword and pretend it's md5. Then modify the code in modules/core/classes/GalleryUser.class (I guess in isCorrectPassword) so that it also is able to verify crypt type passwords. Opinions? Georges |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
the g2 password hash function isn't configurable / plugable yet. your plan sounds reasonable. as a long term solution, i envision either a HashMethod field per user or just a global one for the whole gallery. -------------- |
|