Skip to content

Commit

Permalink
Remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Feb 11, 2017
1 parent 8fb9271 commit 6737b9d
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions AbstractBaseProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ abstract class AbstractBaseProvider
*/
protected $redirectUri;

/**
* Nonce/State to protect CSRF
*
* @var string|null
*/
protected $state;

/**
* @var SessionInterface
*/
Expand Down Expand Up @@ -176,22 +169,4 @@ public function getConsumer()
{
return $this->consumer;
}

/**
* @param null|string $state
*/
public function setState($state)
{
$this->state = $state;
}

/**
* @return string
*/
public function useState()
{
return $this->state = md5(
mt_rand(0, PHP_INT_MAX)
);
}
}

0 comments on commit 6737b9d

Please sign in to comment.