diff options
author | Andreas Gohr <andi@splitbrain.org> | 2024-07-03 08:08:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 08:08:25 +0200 |
commit | 09a402e4d3bff2062048a5c67cd007f171ae2c39 (patch) | |
tree | 92577526e10077b1c54a4fb778615467349faa04 | |
parent | df2dbbd87004838b4d889f967c6c3301364328d4 (diff) | |
parent | 4a9d6ae2968b05434349b05b73ef93f5836ab0f8 (diff) | |
download | dokuwiki-09a402e4d3bff2062048a5c67cd007f171ae2c39.tar.gz dokuwiki-09a402e4d3bff2062048a5c67cd007f171ae2c39.zip |
Merge pull request #4295 from maulware/4239_jwt-no-cache
Move JWT token into metadir #4239
-rw-r--r-- | inc/JWT.php | 6 |
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; } } |