Skip to content

Commit

Permalink
Update random string generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Mar 11, 2016
1 parent c1ff6d2 commit 470bb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function redirect($redirectUrl = null)
}

if ($this->usesState()) {
$this->request->getSession()->set('state', $state = md5(uniqid(microtime(true))));
$this->request->getSession()->set('state', $state = uniqid());
}

return new RedirectResponse($this->getAuthUrl($state));
Expand Down

0 comments on commit 470bb76

Please sign in to comment.