Gallery Login without username

Hello,
I use zenphoto to host a small photo website for my family. I recently upgraded a several-years-old version to the current one (1.4.9).

In my old version, I had it set up where the main gallery was password-protected. On the front page, guests could get into the site by entering just a password (no username), and below the form, there was a password hint.

In the new version, I've also set up guest access, but there are two issues I'm trying to solve, because I think they will be confusing to users:
1) guests can log in without a username, but the login form is still asking for one (i.e. it's the same form I would use to log in as an admin)
2) the password hint is not displayed.

Is there a built-in way to get the behavior I had before? i.e. don't ask for a username and display a hint on the front page? I've searched through the forum and the docs, but I don't seem to find anything that explains this for a recent version. It's been so long since I set up the original site that I've honestly forgotten whether I had to hack anything to get it set up that way.

Thanks in advance for any help you can offer!

Comments

  • gjr Member
    Yes this seems to not be working anymore and is a bug. You should be able to set a gallery password in the gallery option tab then uncheck "username" in security option tab so that all users will have to do is enter a common password (with an optional hint display).

    We will look into this. If you can please submit an issue on Github so that it doesn't get lost.

    Do you know what version you were using before when this worked?
  • gjr Member
    OK actually this is working you just have to modify the function call in your theme. For example on the basic theme, open up password.php and locate the function printPasswordForm(). Replace with

    `<?php printPasswordForm($hint); ?>`

    This will take and show the hint set in the backend under Gallery options->Gallery password, and then also honor whether you have show username selected in options->security (uncheck show username), instead of forcing the showing of username.

    Let us know if that works for you. We should probably change this in all included themes so backend options are enforced.
  • nicsol Member
    That worked perfectly. Thanks so much for you help!
    Shall I still submit this as a bug on github? I'd be more than happy to if it will help.
  • acrylian Administrator, Developer
    I believe a ticket is not needed anymore. I think I remember that we removed the hint as default because it of course may make guessing a password easier. Which depends of course on the hint itself.
Sign In or Register to comment.