/** * Requests a password reset email to be sent to the specified email address associated with the * user account. This email allows the user to securely reset their password on the Parse site. * <p/> * Typically, you should use {@link #requestPasswordResetInBackground} instead of this, unless you * are managing your own threading. * * @param email The email address associated with the user that forgot their password. * @throws ParseException Throws an exception if the server is inaccessible, or if an account with that email * doesn't exist. */ public static void requestPasswordReset(String email) throws ParseException { ParseTaskUtils.wait(requestPasswordResetInBackground(email)); }
/** * Requests a password reset email to be sent in a background thread to the specified email * address associated with the user account. This email allows the user to securely reset their * password on the Parse site. * <p/> * This is preferable to using {@link #requestPasswordReset(String)}, unless your code is already * running from a background thread. * * @param email The email address associated with the user that forgot their password. * @param callback callback.done(e) is called when the request completes. */ public static void requestPasswordResetInBackground(final String email, RequestPasswordResetCallback callback) { ParseTaskUtils.callbackOnMainThreadAsync(requestPasswordResetInBackground(email), callback); }
@NonNull public static Completable resetPassword(@NonNull final String email) { return RxTask.completable(() -> ParseUser.requestPasswordResetInBackground(email)); }
} else { loadingStart(); ParseUser.requestPasswordResetInBackground(email, new RequestPasswordResetCallback() { @Override