If a user loses their password, you can use the OTP (one-time password) feature of UniREST for recovering that user’s password. This procedure requires knowing the user’s username.
GenerateOTP()
The first thing to do is to use the GenerateOTP() method, specifying the user’s username, in order to generate a valid OTP for that user. The method will return a special string that must be used in the ChangePasswordOTP() or WPChangePasswordOTP() methods.