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