![]() |
|
Import User with password - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Import User with password (/thread-7690.html) |
Import User with password - Noppes - 2010-10-04 Hi, I use a zenphoto/zenpage installation. Now I would like to import a bunch (about 250 User) of new users from a textfile to the zp_administrator table. The import works fine, but I have a problem with the passwords. I would like to give every user a default password. How can I generate this password 'offline'? For my part they can have all the same password, but does someone know how to create the password? Thanks for your help Noppes Import User with password - sbillard - 2010-10-04 Well, you have not said how you did the import. If you are just populating the administrators table you have a small problem. Passwords are not stored at all for security reasons. If you use the Zenphoto administrator object, then you just set use the setPassword() method. Import User with password - Noppes - 2010-10-05 Thanks for your answer. I thought I can just populatung the administrators table. Or is there a script available to do this with the zenphoto function? Import User with password - Noppes - 2010-10-05 Hi, I found a solution. I create in my Excel-Userlist the md5-Hash. Now I can populate directly my Administrator-Table. |