Skip to content

Commit

Permalink
Merge pull request #74 from slava-vishnyakov/fix-put
Browse files Browse the repository at this point in the history
fix put
  • Loading branch information
faustbrian authored Jan 25, 2017
2 parents 97d59f7 + fab22c7 commit dde7422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OAuth1/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ public function user()
public function redirect()
{
if (!$this->isStateless()) {
$this->request->getSession()->set(
$this->request->getSession()->put(
'oauth.temp', $temp = $this->server->getTemporaryCredentials()
);
} else {
$temp = $this->server->getTemporaryCredentials();
$this->request->session()->set('oauth_temp', serialize($temp));
$this->request->session()->put('oauth_temp', serialize($temp));
}

return new RedirectResponse($this->server->getAuthorizationUrl($temp));
Expand Down

0 comments on commit dde7422

Please sign in to comment.