Alternate Login

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.

Comments

  • Please review the script `functions-auth.php`
  • 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?
  • Did you happen to look at the commentary at the begining of the functions-auth.php script?
  • 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
Sign In or Register to comment.