Skip to content

Commit

Permalink
fix put
Browse files Browse the repository at this point in the history
  • Loading branch information
slava-vishnyakov committed Jan 25, 2017
1 parent 97d59f7 commit fab22c7
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 fab22c7

Please sign in to comment.