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.
1 parent 7aa023d commit 5df90c9Copy full SHA for 5df90c9
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