Skip to content

Commit 69c0374

Browse files
committed
Merge pull request #15 from johnny-bit/domain_info_auth
rfc5731: Optional authInfo for domain:info (thanks @johnny-bit)
2 parents 5761c64 + 8f46ca2 commit 69c0374

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/AfriCC/EPP/Frame/Command/Info/Domain.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,13 @@ public function setDomain($domain, $return = 'all')
3232

3333
$this->set(sprintf('domain:name[@hosts=\'%s\']', $return), $domain);
3434
}
35+
36+
public function setAuthInfo($pw, $roid = null)
37+
{
38+
$node = $this->set('domain:authInfo/domain:pw', $pw);
39+
40+
if ($roid !== null) {
41+
$node->setAttribute('roid', $roid);
42+
}
43+
}
3544
}

0 commit comments

Comments
 (0)