Is there a way we can unlock a user once he updates his password?

We are trying to improve the user experience and the requirement we have is user instead of going in and unlocking, if the users account is locked we want the user to update the password and along with that their account should be unlocked.

Is there any possible way to do this on okta?