domain_new: create domains with ownerHex

This commit is contained in:
Adhityaa 2018-06-03 20:14:11 +05:30
parent c5b29bbfe1
commit dec05be7f8

View File

@ -45,7 +45,7 @@ func domainNewHandler(w http.ResponseWriter, r *http.Request) {
domain := stripDomain(*x.Domain)
if err = domainNew(o.Email, *x.Name, domain); err != nil {
if err = domainNew(o.OwnerHex, *x.Name, domain); err != nil {
writeBody(w, response{"success": false, "message": err.Error()})
return
}