Example #1
0
 /**
  * Return new license key token
  *
  * Token is used to change license key from remote location
  *
  * Format is: timestamp|20-random-characters
  *
  * @return string
  */
 public function generateLicenseKeyToken()
 {
     $token = time() . '|' . vc_random_string(20);
     return $token;
 }
Example #2
0
 /**
  * Return new license key token
  *
  * Token is used to change license key from remote location
  *
  * Format is: timestamp|20-random-characters
  *
  * @return string
  */
 public function generateLicenseKeyToken()
 {
     $token = current_time('timestamp') . '|' . vc_random_string(20);
     return $token;
 }