aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--inc/JWT.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/JWT.php b/inc/JWT.php
index ce42a8520..1c4da5607 100644
--- a/inc/JWT.php
+++ b/inc/JWT.php
@@ -179,6 +179,10 @@ class JWT
*/
public static function getStorageFile($user)
{
- return getCacheName($user, '.token');
+ global $conf;
+ $hash = hash('sha256', $user);
+ $file = $conf['metadir'] . '/jwt/' . $hash[0] . '/' . $hash . '.token';
+ io_makeFileDir($file);
+ return $file;
}
}