Class ByProjectKeyMePasswordResetPost

All Implemented Interfaces:
ErrorableTrait<ByProjectKeyMePasswordResetPost>, ClientRequestCommand<Customer>, CreateHttpRequestCommand, HttpRequestCommand<Customer>, RequestCommand<Customer>

This is the last step in the password reset process of a Customer.

Resetting a password of the Customer produces the CustomerPasswordUpdated Message with reset=true.

After the password is reset, all password tokens issued previously through the password reset flow are invalidated. In addition, any access and refresh tokens issued previously through the password flow and refresh token flow are invalidated. This invalidation of tokens is eventually consistent.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer.Customer>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .password()
            .reset()
            .post(null)
            .execute()