Member
Member
demosthenes705   17-04-2009, 22:21
#1

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.

Member
Member
sbillard   17-04-2009, 23:13
#2

Please review the script functions-auth.php

Member
Member
demosthenes705   18-04-2009, 19:16
#3

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 getAdministrators() and checkLogin()

I modified getAdministrators() to getAdministrators($email) to return the row with the information for the given email address.

Any suggestions?

Member
Member
sbillard   18-04-2009, 21:55
#4

Did you happen to look at the commentary at the begining of the functions-auth.php script?

Member
Member
demosthenes705   18-04-2009, 22:40
#5

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.