1. Home
  2. Docs
  3. UniREST Solution 3.5
  4. UniREST Client
  5. Login and Registration
  6. OTP Change Password

OTP Change Password

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.