Many fixes in epp create, renew, transfer

This commit is contained in:
Pinga 2023-08-28 14:22:16 +03:00
parent dd6ec728cc
commit 67f9651a8a
4 changed files with 32 additions and 9 deletions

View file

@ -228,6 +228,11 @@ function createTransaction($db, $clid, $clTRID, $clTRIDframe) {
$cldate = date("Y-m-d H:i:s", $dateForClTransaction);
$clmicrosecond = sprintf("%06d", ($dateForClTransaction - floor($dateForClTransaction)) * 1000000);
if (empty($clTRID)) {
// If $clTRID is empty, generate a random string prefixed with "client-not-provided-"
$clTRID = 'client-not-provided-' . bin2hex(random_bytes(8)); // Generates a 16 character hexadecimal string
}
// Execute the statement
if (!$stmt->execute([
$clid,