Skip Navigation

[Resolved] Force password change

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by martinB-16 4 months, 3 weeks ago.

Assigned support staff: Christian Cox.

Author
Posts
#1977623

I have a registration form in which the password is generated automatically. The password will then be sent by email.

How can I get the password to be changed when I log in for the first time?

#1977709

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Hi, there's nothing exactly like this built-in to the software. There is no easy way to test whether or not a User has changed his/her password from the automatically generated password. I suppose you could try to work around this with a custom field somehow, like if you set a value of 1 in a custom field when the User registers, then set the value to 0 when they submit an Edit User Form. In the site, you could test the value of that custom field and display an Edit User Form instead of the site content. But even that isn't foolproof, as there is no easy way to test whether or not the User changes his or her password in the Edit User Form - they could change other information without changing their password, and that would update the custom field value.

So the short answer is there isn't a good solution for that problem, but you could try some alternatives to force the User to submit an Edit User Form.

#1986125

My issue is resolved now. Thank you!