fix JWT access token always being 1 hr

pull/2790/head
Pliable Pixels 2020-01-02 10:25:48 -05:00
parent 98f7fb63b9
commit 399508b211
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class HostController extends AppController {
}*/
$access_issued_at = time();
$access_ttl = (ZM_AUTH_HASH_TTL || 2) * 3600;
$access_ttl = max(ZM_AUTH_HASH_TTL,1) * 3600;
// by default access token will expire in 2 hrs
// you can change it by changing the value of ZM_AUTH_HASH_TLL