Identification fails when gallery is empty #1076

Closed
opened 2026-10-05 00:30:45 +02:00 by adam · 1 comment
Owner

This is quite a specific use case, but we have discovered that if you follow these steps, you get stuck:

  1. right after install, log in with your webmaster credentials (user created during install)
  2. in the administration, do not add photos, create a new user "user1", with no admin status
  3. log out
  4. log in as "user1". The identification seems to fail (it doesn't) and you can't log out. You're stuck.

What happens is that the step 4 works: you're logged in as "user1", but since the gallery is empty, no_photo_yet is triggered and displays the login form because you're not admin. When trying to log in, identication.php says "you're already logged in" with a redirection to gallery home.

no_photo_yet page should not be triggered if the visitor is a connected user, without admin status.

This is quite a specific use case, but we have discovered that if you follow these steps, you get stuck: 1. right after install, log in with your webmaster credentials (user created during install) 2. in the administration, do not add photos, create a new user "user1", with no admin status 3. log out 4. log in as "user1". The identification seems to fail (it doesn't) and you can't log out. You're stuck. What happens is that the step 4 works: you're logged in as "user1", but since the gallery is empty, no_photo_yet is triggered and displays the login form because you're not admin. When trying to log in, identication.php says "you're already logged in" with a redirection to gallery home. no_photo_yet page should not be triggered if the visitor is a connected user, without admin status. <!-- github-sync-id:723008947 -->
adam closed this issue 2026-10-05 00:30:45 +02:00
Author
Owner

Maybe a bit connected to #1138

Maybe a bit connected to #1138 <!-- github-comment-id:709899061 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1076