Skip to content

Commit beb96e9

Browse files
authored
Merge pull request #25 from hognevevle/master
Support changing domains' AuthInfo
2 parents ce9d9da + 4c3faee commit beb96e9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

EppLib/Entities/Domain/DomainChange.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ namespace EppLib.Entities
1616
public class DomainChange
1717
{
1818
public string RegistrantContactId;
19-
19+
public string AuthInfo;
2020
}
2121
}

EppLib/Entities/Domain/DomainUpdate.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ protected override XmlElement BuildCommandElement(XmlDocument doc, XmlElement co
5656
AddXmlElement(doc, change_element, "domain:registrant", DomainChange.RegistrantContactId, namespaceUri);
5757
}
5858

59+
if (DomainChange.AuthInfo != null)
60+
{
61+
var authInfoElement = AddXmlElement(doc, change_element, "domain:authInfo", null, namespaceUri);
62+
AddXmlElement(doc, authInfoElement, "domain:pw", DomainChange.AuthInfo, namespaceUri);
63+
}
64+
5965
domainUpdate.AppendChild(change_element);
6066
}
6167

0 commit comments

Comments
 (0)