public function sendPasswordReset($id, $link = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['link' => $link], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/' . $id . '/resetpassword', $parameters);

        return $result;
    }
public function sendPasswordReset($id, $link = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['link' => $link], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/' . $id . '/resetpassword', $parameters);

        return $result;
    }
public function sendPasswordReset ( $ id , $ link = null ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ 'link' => $ link ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/accounts/users/' . $ id . '/resetpassword' , $ parameters ) ; return $ result ; }
Dispatch a password reset mail to a user.

. The supplied link will be included in the mail and appended with a "hash=" parameter containing the password reset hash needed to set the new password in step 2.

@param int    $id   the User identifier
@param string $link Optional link to override redirect to in the password reset mail
Dispatch a password reset mail to a user .