All URIs are relative to http://http:/v1
Method | HTTP request | Description |
---|---|---|
accountPasswordCheckTokenPost | POST /account/password/check-token | Validate password reset token |
accountPasswordForgotPost | POST /account/password/forgot | Request password reset link |
accountPasswordResetPost | POST /account/password/reset | Reset a forgotten password with a token |
accountPasswordCheckTokenPost(body)
Validate password reset token
The second step in the forgotten password reset procedure is to ensure that the password reset token is still valid. Each token can be used at most once and it is valid for a limited duration.
// Import classes:
//import org.openapitools.client.api.AccountApi;
AccountApi apiInstance = new AccountApi();
String body = "body_example"; // String |
try {
apiInstance.accountPasswordCheckTokenPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountPasswordCheckTokenPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | String |
null (empty response body)
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: /
accountPasswordForgotPost(body)
Request password reset link
This is the starting point of the forgotten password recovery process. It sends a password reset link with a pasword reset token to the given user's email address if such user and email address exist.
// Import classes:
//import org.openapitools.client.api.AccountApi;
AccountApi apiInstance = new AccountApi();
ForgotPasswordData body = new ForgotPasswordData(); // ForgotPasswordData |
try {
apiInstance.accountPasswordForgotPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountPasswordForgotPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ForgotPasswordData |
null (empty response body)
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: /
accountPasswordResetPost(body)
Reset a forgotten password with a token
The final step of the forgotten password reset procedure performs password reset with a token obtained from the email message sent by the POST /password/forgot endpoint and the new password and its confirmation. If @password@ or @confirmPassword@ are missing, then this endpoint performs a mere token validation like the @/password/check-token@ endpoint.
// Import classes:
//import org.openapitools.client.api.AccountApi;
AccountApi apiInstance = new AccountApi();
UpdatePasswordData body = new UpdatePasswordData(); // UpdatePasswordData |
try {
apiInstance.accountPasswordResetPost(body);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountPasswordResetPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | UpdatePasswordData |
null (empty response body)
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: /