owner_new.go: create commenter user on ownerNew

This commit is contained in:
Adhityaa 2018-06-11 00:16:19 +05:30
parent 08c708341b
commit 442e3e44de

View File

@ -79,5 +79,10 @@ func ownerNewHandler(w http.ResponseWriter, r *http.Request) {
return 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}) writeBody(w, response{"success": true, "confirmEmail": smtpConfigured})
} }