diff --git a/api/owner_new.go b/api/owner_new.go index 85ba088..d8e7279 100644 --- a/api/owner_new.go +++ b/api/owner_new.go @@ -79,5 +79,10 @@ func ownerNewHandler(w http.ResponseWriter, r *http.Request) { return } + if _, err := commenterNew(*x.Email, *x.Name, "undefined", "undefined", "commento", *x.Password); err != nil { + writeBody(w, response{"success": false, "message": err.Error()}) + return + } + writeBody(w, response{"success": true, "confirmEmail": smtpConfigured}) }