mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-01 16:43:26 +02:00
Further work on identica epp extension
This commit is contained in:
parent
30e353658e
commit
6bb091b0f1
1 changed files with 3 additions and 3 deletions
|
@ -304,11 +304,11 @@ function processContactCreate($conn, $db, $xml, $clid, $database_type) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$obj_ext = $xml->xpath('//identExt:create')[0] ?? null;
|
$obj_ext = $xml->xpath('//identica:create')[0] ?? null;
|
||||||
|
|
||||||
if ($obj_ext) {
|
if ($obj_ext) {
|
||||||
$nin = (string)$obj_ext->xpath('identExt:nin')[0] ?? '';
|
$nin = (string)$obj_ext->xpath('identica:nin')[0] ?? '';
|
||||||
$nin_type = (string)$obj_ext->xpath('identExt:nin/@type')[0] ?? '';
|
$nin_type = (string)$obj_ext->xpath('identica:nin/@type')[0] ?? '';
|
||||||
|
|
||||||
if (!preg_match('/\d/', $nin)) {
|
if (!preg_match('/\d/', $nin)) {
|
||||||
sendEppError($conn, 2005, 'NIN should contain one or more numbers');
|
sendEppError($conn, 2005, 'NIN should contain one or more numbers');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue