use of com.willshex.blogwt.client.api.user.event.ResetPasswordEventHandler.ResetPasswordFailure in project blogwt by billy1380.
the class UserController method resetPassword.
/**
* @param email
*/
public void resetPassword(String email) {
final ResetPasswordRequest input = ApiHelper.setAccessCode(new ResetPasswordRequest());
input.session = SessionController.get().sessionForApiCall();
input.email = email;
ApiHelper.createUserClient().resetPassword(input, new AsyncCallback<ResetPasswordResponse>() {
@Override
public void onSuccess(ResetPasswordResponse output) {
if (output.status == StatusType.StatusTypeSuccess) {
}
DefaultEventBus.get().fireEventFromSource(new ResetPasswordSuccess(input, output), UserController.this);
}
@Override
public void onFailure(Throwable caught) {
DefaultEventBus.get().fireEventFromSource(new ResetPasswordFailure(input, caught), UserController.this);
}
});
}
Aggregations