diff --git a/src/API/ApiUsers.php b/src/API/ApiUsers.php index e8893a9d..f49fb6f2 100644 --- a/src/API/ApiUsers.php +++ b/src/API/ApiUsers.php @@ -139,16 +139,10 @@ public static function createEmailVerificationTicket($domain, $token, $user_id, $request = self::getApiV2Client($domain)->post() ->tickets() ->addPath('email-verification') + ->withHeader(new ContentType('application/json')) ->withHeader(new AuthorizationBearer($token)) ->withBody(json_encode($body)); - if ($result_url) { - $body = json_encode(array( - 'result_url' => $result_url - )); - $request->withBody($body); - } - return $request->call(); }