Backendless Support
 

Changing user’s password via API, if user cannot login (Free Plan)

In Backendless a user password can be changes, if necessary, changing password by administrator or change password via API if user can login. There is also a scenario when a user needs to change password when he cannot login for the reason that the password is forgotten. In this case, Backendless provides a simple API that delivers a temporary password to the user's email address. The e-mail message can be customized by editing the template for the 'restore password' event

This behavior is specific to the apps on the free plan. Applications on the Backendless Plus or above plans provide more flexibility for resetting user's password.

Asynchronous API sample:

Backendless.UserService.restorePassword( "spidey@backendless.com", new AsyncCallback<Void>()
{
 @Override
 public void handleResponse( Void aVoid )
 {
 System.out.println( "Temporary password has been emailed to the user" );
 }
 @Override
 public void handleFault( BackendlessFault backendlessFault )
 {
 System.out.println( "Server reported an error - " + backendlessFault.getMessage() );
 }
} );

Synchronous API sample:

Backendless.UserService.restorePassword( "spidey@backendless.com" );
System.out.println( "Temporary password has been
Is article helpful?