Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
fixes #240
Browse files Browse the repository at this point in the history
  • Loading branch information
seregazhuk committed Jan 24, 2017
1 parent 9650986 commit 14d03f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [5.2.2] - 2017-01-24
### Fixed:
- Registration

## [5.2.2] - 2017-01-24
### Fixed:
- Search method correctly works with limits.
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Providers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function logout()
public function register($email, $password, $name, $country = 'GB', $age = 18)
{
$data = [
"age" => $age,
"age" => (string)$age,
"email" => $email,
"password" => $password,
"country" => $country,
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Request
'DNT: 1',
'X-Pinterest-AppState: active',
'X-NEW-APP: 1',
'X-APP-VERSION: 4f10e3b',
'X-APP-VERSION: 3f2a9cf',
'X-Requested-With: XMLHttpRequest',
];

Expand Down Expand Up @@ -223,7 +223,7 @@ public static function createRequestData(array $data = [], $bookmarks = [])
$data['context'] = new \stdClass();

return [
'source_url' => '',
'source_url' => '/?logged_out=true',
'data' => json_encode($data),
];
}
Expand Down

0 comments on commit 14d03f7

Please sign in to comment.