Merge pull request #2790 from pliablepixels/jwt-token-duration

fix JWT access token always being 1 hr
pull/2801/head
Isaac Connor 2020-01-02 17:22:37 -05:00 committed by GitHub
commit 89844f72f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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