Skip to content

Commit

Permalink
Revert "fix timestamp expire validation"
Browse files Browse the repository at this point in the history
This reverts commit 7747d5e.
  • Loading branch information
erivello authored and weaverryan committed Feb 25, 2013
1 parent b3d7f25 commit 5618697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/security/custom_authentication_provider.rst
Expand Up @@ -220,7 +220,7 @@ the ``PasswordDigest`` header value matches with the user's password.
protected function validateDigest($digest, $nonce, $created, $secret)
{
// Expire timestamp after 5 minutes
if (abs(time() - strtotime($created)) > 300) {
if (time() - strtotime($created) > 300) {
return false;
}
Expand Down

0 comments on commit 5618697

Please sign in to comment.