Registration/login problem

Hello,

On my website I'm using the register_user and user_logout plugins and I have a problem and a question.

When a user registers on my site, the registration goes through fine and the thank you message is displayed. However, once the account has been activated, the user is completely unable to login. I've attempted multiple times to create a new user with a simple password and each time the login fails. The login is successful only when I change the new users password from within the admin area.

Also, as for the question - I've been doing some work on the standard register_user plugin to add some multi-user functionality. In doing so, I noticed that the standard plugin checks if the function printUserLogout() exists on line 205 but then uses printPasswordForm() instead. Is there any advantage to using this form in lieu of the other?

I should also mention that I'm on 1.2.6 RC2.

Thanks,
kagutsuchi

Comments

  • Thank you for the report. There is a bug in register_user such that it is not storing the correct password. This will be fixed in tonight's nightly.

    The check on `printUserLogout()` is actually there to check if the user_logout plugin is enabled. If it is not enabled, there is no mechanism for loging an admin except for the `/zenphoto/admin` link. register_user prints a login form then. This is the standard admin login form rather than the guest login form which might not contain the field for supplying the user name.
  • Ahh, I understand now. Thanks a lot!
Sign In or Register to comment.