satellite/console/consoleweb/consoleapi: report err to monkit

Report the "Not Implemented" error response returned by DeleteAccount
API handler to monkit.

Change-Id: I17e319639c458cbe803b65b5a34111b8f74daece
This commit is contained in:
Ivan Fraixedes 2020-10-21 12:04:35 +02:00 committed by Ivan Fraixedes
parent 746cbfc659
commit 9abdcc05e5

View File

@ -240,11 +240,11 @@ func (a *Auth) GetAccount(w http.ResponseWriter, r *http.Request) {
// DeleteAccount authorizes user and deletes account by password.
func (a *Auth) DeleteAccount(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
var err error
err := ErrAuthAPI.New("not implemented")
defer mon.Task()(&ctx)(&err)
// We do not want to allow account deletion via API currently.
a.serveJSONError(w, ErrAuthAPI.New("not implemented"))
a.serveJSONError(w, err)
}
// ChangePassword auth user, changes users password for a new one.