![]() |
|
Hash function? - 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: Hash function? (/thread-6205.html) |
Hash function? - zero_day - 29-11-2009 Hello, i have to register admin-users without zenphoto formular. i used the search function of this forum, but i found nothing, only that Currently it do a hash on the UserID+Password. PS: Sorry for my bad english ^^ Hash function? - acrylian - 29-11-2009 You can make your own form by customizing the Why don't you want to use the form we provide? Hash function? - zero_day - 29-11-2009 because it's for my cms. with the register on the mainpage,user shall registered on the gallery. therefore i will update the database from zenphoto with my reg-formular. (i don't make a update from the gallery, because problems are indifferent^^) But i don't abolutly not how i can cutomizing the lib-auth.php ... Hash function? - acrylian - 29-11-2009 Ok, so a kind of single login. I suggest to take a look at these extensions, there are some single login scripts, some older and for Wordpress, that might give you some ideas: Also probably of interesst: Out of curiosity what CMS do you use? Hash function? - zero_day - 29-11-2009 My own cms I've readed http://www.zenphoto.org/tag/login/ but there is no function for hash Oo One question: To understand the hash is created, md5 from password+userID or...? Thank you for help Hash function? - acrylian - 29-11-2009 There is Hash function? - zero_day - 29-11-2009 sorry but it works not realy maybe i'm a fool but i must ask again... i defined the plugins and included the lib-auth and classes.php ... the file "test" is in zenphoto/zp-core/ Hash function? - sbillard - 30-11-2009 Please be a little more specific on what you need to do. If you just want a single login of your CMS users you can just define the users both to the CMS and to Zenphoto using the same password. Then use the single logon suggestions above. If you want to integrate your CMS login management with Zenphoto you need to create a custom version of the lib-auth.php that manages the users based on your CMS user database. The instructions for what you must provide are part of the lib-auth.php script. There is really no reason for you to be hashing the Zenphoto passwords yourself. That will do you no good. |