Forward a sid to GPM when downloading a premium package

This commit is contained in:
Djamil Legato
2020-10-29 15:25:40 -07:00
parent 4e45a22837
commit a8bd391b78
2 changed files with 3 additions and 1 deletions

View File

@@ -293,7 +293,8 @@ class Gpm
if ($package->premium) {
$query = \json_encode(array_merge($package->premium, [
'slug' => $package->slug,
'license_key' => $license
'license_key' => $license,
'sid' => md5(GRAV_ROOT)
]));
$query = '?d=' . base64_encode($query);