owner_new.go: create commenter user on ownerNew
This commit is contained in:
@@ -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})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user