We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95c6b41 + 5df90c9 commit 39fdeb1Copy full SHA for 39fdeb1
cookbook/security/custom_authentication_provider.rst
@@ -226,7 +226,7 @@ the ``PasswordDigest`` header value matches with the user's password.
226
}
227
228
// Validate nonce is unique within 5 minutes
229
- if (file_exists($this->cacheDir.'/'.$nonce) && file_get_contents($this->cacheDir.'/'.$nonce) + 300 < time()) {
+ if (file_exists($this->cacheDir.'/'.$nonce) && file_get_contents($this->cacheDir.'/'.$nonce) + 300 > time()) {
230
throw new NonceExpiredException('Previously used nonce detected');
231
232
file_put_contents($this->cacheDir.'/'.$nonce, time());
0 commit comments