Force user to set new password conditionnally
-
Hi,
I’m using your plugin on each woocommerce I build.
This time, the website is a migration, and the old developer doesn’t want to give us an access to the old database.
I did import all users and the only data I don’t have is the password. I defined a secure password for user and set an usermeta password_changed to false.
I’d like to make this process :
- When user log in, I check if the E-mail exist, if the password is the password I temporarily set and if the usermeta password_changed is equal to false.
- If this conditions matches, I’d like to force user to define a new password
I didn’t take a look at your source code to check if there is some hook or filters I can use.
Can I make some custom verifications for the first point ?
And about the second point, do you have any suggestion ? I can use JS to trigger click the “forgot password” link and modify the notice text displayed. If you have any better idea, thank you ??
Have a nice day.
Anthony
- The topic ‘Force user to set new password conditionnally’ is closed to new replies.