Skip to content

Commit

Permalink
Merge pull request #33 from Ring/patch-1
Browse files Browse the repository at this point in the history
Remove code that rewrites user_id property in $body
  • Loading branch information
glena committed Aug 4, 2015
2 parents 723071a + 78da395 commit f94659c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/API/ApiUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}
Expand Down

0 comments on commit f94659c

Please sign in to comment.