domain_new.go: use stripped domain name

Fixes https://gitlab.com/commento/commento-ce/issues/19
This commit is contained in:
Adhityaa 2018-06-11 12:05:15 +05:30
parent 14509adaba
commit 6e57dabdf8

View File

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