aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Security/Authentication/Provider/WsseProvider.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Security/Authentication/Provider/WsseProvider.php b/src/Wallabag/CoreBundle/Security/Authentication/Provider/WsseProvider.php
index 5499f400..eaad9c63 100644
--- a/src/Wallabag/CoreBundle/Security/Authentication/Provider/WsseProvider.php
+++ b/src/Wallabag/CoreBundle/Security/Authentication/Provider/WsseProvider.php
@@ -44,6 +44,12 @@ class WsseProvider implements AuthenticationProviderInterface
44 if (file_exists($this->cacheDir.'/'.$nonce) && file_get_contents($this->cacheDir.'/'.$nonce) + 300 > time()) { 44 if (file_exists($this->cacheDir.'/'.$nonce) && file_get_contents($this->cacheDir.'/'.$nonce) + 300 > time()) {
45 throw new NonceExpiredException('Previously used nonce detected'); 45 throw new NonceExpiredException('Previously used nonce detected');
46 } 46 }
47
48 // If cache directory does not exist we create it
49 if (!is_dir($this->cacheDir)) {
50 mkdir($this->cacheDir, 0777, true);
51 }
52
47 file_put_contents($this->cacheDir.'/'.$nonce, time()); 53 file_put_contents($this->cacheDir.'/'.$nonce, time());
48 54
49 // Valide le Secret 55 // Valide le Secret