![]() |
|
Alternate Login - 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: Alternate Login (/thread-5045.html) |
Alternate Login - demosthenes705 - 2009-04-17 I am working on integrating zenphoto with a custom panel. I have created a script for when they register to create them their own personal photo album and to make them the administrator of said album. The only issue that I am running into is that I don't know how to login a user. Do you have any ideas on how I can go about that. I have the single user login, but I am not sure how I can go about edit that. Is there any tutorial that I can look at for learning on how to work with the login as I also need to add my own session variables to their login. Alternate Login - sbillard - 2009-04-17 Please review the script Alternate Login - demosthenes705 - 2009-04-18 Ok, thanks for that help, I now have it so it returns the array of the user information for the given user. The only question is where I can find out how to set what zen photo needs. Currently I am calling I modified getAdministrators() to getAdministrators($email) to return the row with the information for the given email address. Any suggestions? Alternate Login - sbillard - 2009-04-18 Did you happen to look at the commentary at the begining of the functions-auth.php script? Alternate Login - demosthenes705 - 2009-04-18 Thanks, I glanced over it quickly and didn't really read it. I feel kinda stupid as that tells me basically what I need to set. Once again, thanks |