ProcessWire icon indicating copy to clipboard operation
ProcessWire copied to clipboard

User Profile: "Passwords do not match. (pass)"

Open klor opened this issue 9 years ago • 9 comments

When installing Admin Theme Reno and configuring a user profile to use this theme, I get the error message "Passwords do not match. (pass)" on the user profile page.

  • I am here: /processwire/access/users/edit/?id=9138&s=1

This happens because entering password twice is required on the Profile page.

As a result, it is not possible for Admin to change User Profile on behalf of users (unless you happen to know their password).

Better: Do not require password to be re-entered / confirmed when making updates to the profile page. (This requirement seems to be a remisense from when the profile page was only used for entering password and e-mail address.)

klor avatar Aug 29 '15 05:08 klor

I can't duplicate this one. When I edit a user, I can change their admin theme (or any other field) without touching their password. Note that a password is a required field for a user, so is it possible you are attempting to edit a user that has no password yet? PW only requires a password if there isn't one already set.

ryancramerdesign avatar Sep 22 '15 16:09 ryancramerdesign

Hi Ryan, Thanks for looking into this. I confirm your finding. Thanks.

Note that a password is a required field for a user, so is it possible you are attempting to edit a user that has no password yet?

True. So to create a new user and inform him about the login credentials, you first create the user, then edit the user to add a password and finally send an e-mail.

On a sidenote: I was just thinking through the steps to create a new / valid user (with a password):

  1. Go to the user screen.
  2. Press Add New. User object is now created as Unpublished (user cannot login yet), and Admin is redirected to the Edit User page (/processwire/access/users/edit/?id=1234).
  3. On the Edit User page: Specify the user password. Save changes.
  4. Open your e-mail client, compose a new e-mail.
  5. Write a welcome mail to the user that include username and password.

(I am writing this as inspiration for future development of the user module. It is in no way an issue since user management works fine.)

Anyways, the issue has been resolved and I'll go ahead and close the issue.

klor avatar Sep 22 '15 18:09 klor

@adrianbj (adrian) actually has a module that automates much of this, definitely worth checking out. I don't have it in front of me at the moment, but let me know if you can't find it in the directory.

On Tue, Sep 22, 2015 at 2:47 PM, klor [email protected] wrote:

Hi Ryan, Thanks for looking into this. I confirm your finding. Thanks.

Note that a password is a required field for a user, so is it possible you are attempting to edit a user that has no password yet?

True. So to create a new user and inform him about the login credentials, you first create the user, then edit the user to add a password and finally send an e-mail.

On a sidenote: I was just thinking through the steps to create a new / valid user (with a password):

  1. Go to the user screen.
  2. Press Add New. User object is now created as Unpublished (user cannot login yet), and Admin is redirected to the Edit User page (/processwire/access/users/edit/?id=1234).
  3. On the Edit User page: Specify the user password. Save changes.
  4. Open your e-mail client, compose a new e-mail.
  5. Write a welcome mail to the user that include username and password.

(I am writing this as inspiration for future development of the user module. It is in no way an issue since user management works fine.)

Anyways, the issue has been resolved and I'll go ahead and close the issue.

— Reply to this email directly or view it on GitHub https://github.com/ryancramerdesign/ProcessWire/issues/1370#issuecomment-142382826 .

ryancramerdesign avatar Sep 22 '15 18:09 ryancramerdesign

@klor - this is the module that @ryancramerdesign is referring to: http://modules.processwire.com/modules/email-new-user/

You might also want to make use of: http://modules.processwire.com/modules/password-force-change/ to force the user to change their password when they login - always a good idea when you have emailed a password.

Let me know if you need any help with either module.

adrianbj avatar Sep 22 '15 18:09 adrianbj

@adrianbj Nice. Thanks.

klor avatar Sep 22 '15 19:09 klor

No problem - please let me know how it suits your needs and if there is anything I can do to improve it for you.

adrianbj avatar Sep 23 '15 02:09 adrianbj

When installing Admin Theme Reno and configuring a user profile to use this theme, I get the error message "Passwords do not match. (pass)" on the user profile page.

To reproduce:

  • Prerequisite: You have an Admin user with a valid password.
  • Install Reno admin theme.
  • Go to Users -> Admin (my current user). Note that Admin does have a Password.
  • Set Admin Theme to Reno. Click Save.
  • Result: Error message "Passwords do not match." is shown.

klor avatar Sep 28 '15 04:09 klor

I still can't duplicate this one. Tried all the steps you mentioned, but not getting anything asking for password. Is it possible you've got something in your browser auto-filling in one of the password fields?

On Mon, Sep 28, 2015 at 12:11 AM, klor [email protected] wrote:

Reopened #1370 https://github.com/ryancramerdesign/ProcessWire/issues/1370.

— Reply to this email directly or view it on GitHub https://github.com/ryancramerdesign/ProcessWire/issues/1370#event-420373371 .

ryancramerdesign avatar Sep 28 '15 09:09 ryancramerdesign

@klor This issue doesn’t seem to be reproducible. Can it be closed?

isellsoap avatar Sep 30 '16 13:09 isellsoap