In version 1.2.6, I wrote a customization that overrides the default lib-auth.php file by making a lib-auth_custom.php file, and rewriting alot of those functions in lib-auth.php. However, I would rather just give zenphoto the cookie it needs and insert the user into the db and let zenphoto do all of it's own things with authentication.
What is the zen-way(best way) of doing this in 1.2.9, and future versions? Specifically, [b]where should I set my cookie, and do my db insert[/b]? I tried in my lib-auth_custom.php file requiring my authentication system to be logged in, setting the zenphoto cookie, doing a db insert, then requiring the lib-auth.php file. This works until you try to use the flash uploader, because it doesn't have access to the cookie so it is forced to redirect when it is uploading photos.
Is it possible that the next version of zenphoto could allow users to override the authentication with hooks in a plugin? There could be a hook for logging out, loggin in, etc. functions. OR is there already a way of doing this that I am now aware of?