Skip to content

Password Verification

When a user needs to change their password in your application, you may need to verify their existing password for security reasons. Since Backendless stores passwords in the encrypted format and never returns the password value, you need to use the API call documented below to implement password verification. This functionality is available only in Cloud Code/Business Logic. The API checks the provided password value against the one stored in the database. User must be logged - Backendless verifies provided value for the currently logged in user.


Backendless.UserService.verifyPassword( currentPassword ) 
 .then( function( boolResult ) {
  })
 .catch( function( error ) {
  });

where:

Argument                Description
currentPassword value to check against the password stored in the database.