mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-01 08:33:22 +02:00
Fixed epp domain info issue with authinfo
This commit is contained in:
parent
4ed73ab23f
commit
dc9cc161d9
2 changed files with 9 additions and 5 deletions
|
@ -178,7 +178,7 @@ function processHostInfo($conn, $db, $xml, $trans) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function processDomainInfo($conn, $db, $xml, $trans) {
|
function processDomainInfo($conn, $db, $xml, $clid, $trans) {
|
||||||
$domainName = $xml->command->info->children('urn:ietf:params:xml:ns:domain-1.0')->info->name;
|
$domainName = $xml->command->info->children('urn:ietf:params:xml:ns:domain-1.0')->info->name;
|
||||||
$clTRID = (string) $xml->command->clTRID;
|
$clTRID = (string) $xml->command->clTRID;
|
||||||
|
|
||||||
|
@ -468,7 +468,11 @@ function processDomainInfo($conn, $db, $xml, $trans) {
|
||||||
if (isset($domain['trdate']) && $domain['trdate']) {
|
if (isset($domain['trdate']) && $domain['trdate']) {
|
||||||
$response['trDate'] = $domain['trdate'];
|
$response['trDate'] = $domain['trdate'];
|
||||||
}
|
}
|
||||||
if (isset($domain_authinfo_id) && $domain_authinfo_id) {
|
if ($clid == $domain['clid']) {
|
||||||
|
$response['authInfo'] = 'valid';
|
||||||
|
$response['authInfo_type'] = $authInfo['authtype'];
|
||||||
|
$response['authInfo_val'] = $authInfo['authinfo'];
|
||||||
|
} else if (isset($domain_authinfo_id) && $domain_authinfo_id) {
|
||||||
$response['authInfo'] = 'valid';
|
$response['authInfo'] = 'valid';
|
||||||
$response['authInfo_type'] = $authInfo['authtype'];
|
$response['authInfo_type'] = $authInfo['authtype'];
|
||||||
$response['authInfo_val'] = $authInfo['authinfo'];
|
$response['authInfo_val'] = $authInfo['authinfo'];
|
||||||
|
|
|
@ -395,7 +395,7 @@ $server->handle(function (Connection $conn) use ($table, $pool, $c, $log, $permi
|
||||||
sendEppError($conn, $pdo, 2202, 'Authorization error', $clTRID);
|
sendEppError($conn, $pdo, 2202, 'Authorization error', $clTRID);
|
||||||
$conn->close();
|
$conn->close();
|
||||||
}
|
}
|
||||||
processDomainInfo($conn, $pdo, $xml, $trans);
|
processDomainInfo($conn, $pdo, $xml, $clid, $trans);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue