ZenphotoCMS Forum
Album/gallery password protection not working? - 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: Album/gallery password protection not working? (/thread-6216.html)



Album/gallery password protection not working? - Vito Botta - 02-12-2009

I've just upgraded to the 1.2.7 hoping it was an issue with the 1.2.6, but it looks like I am still having the same problem.

Which is, if I set username/password at gallery or either album level, I can see the padlock icons and the login/password form, but it does not accept the user/password I have set in the administration.

Any ideas?
Thanks




Album/gallery password protection not working? - sbillard - 02-12-2009

There is a define for DEBUG_LOGIN in functions-basic.php. Set it to true and do your test. You will get a debug log of what happened during the login.




Album/gallery password protection not working? - Vito Botta - 02-12-2009

Cool, good to know. Thanks!
For the time being though I just reinstalled the new version from scratch and it works.
(I only had a few pix yet so it was OK)

Out of curiosity, rather than setting album/gallery passwords, would it be possible to somehow restrict which albums a user can see, depending on their role?




Album/gallery password protection not working? - sbillard - 02-12-2009

Out of curiosity, rather than setting album/gallery passwords, would it be possible to somehow restrict which albums a user can see, depending on their role?

If a gallery is not password protected, the general public can view it. So at least you have to password protect the gallery. Having done that, you can define user groups for the roles you speak of. (This requires the user_groups plugin.) For each group you can specify rights and albums. If you do not give view all rights and manage all albums rights the user can view only those albums you have assigned to him.