fix cross-client consistency
This commit is contained in:
@@ -41,4 +41,11 @@ public class AuthApi {
|
||||
body.put("usernameOrEmail", usernameOrEmail);
|
||||
apiClient.post("/api/v1/auth/forgot-password", body, Object.class);
|
||||
}
|
||||
|
||||
public void resetPassword(String token, String newPassword) throws Exception {
|
||||
Map<String, String> body = new HashMap<>();
|
||||
body.put("token", token);
|
||||
body.put("newPassword", newPassword);
|
||||
apiClient.post("/api/v1/auth/reset-password", body, Object.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user