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:
parent
746cbfc659
commit
9abdcc05e5
@ -240,11 +240,11 @@ func (a *Auth) GetAccount(w http.ResponseWriter, r *http.Request) {
|
|||||||
// DeleteAccount authorizes user and deletes account by password.
|
// DeleteAccount authorizes user and deletes account by password.
|
||||||
func (a *Auth) DeleteAccount(w http.ResponseWriter, r *http.Request) {
|
func (a *Auth) DeleteAccount(w http.ResponseWriter, r *http.Request) {
|
||||||
ctx := r.Context()
|
ctx := r.Context()
|
||||||
var err error
|
err := ErrAuthAPI.New("not implemented")
|
||||||
defer mon.Task()(&ctx)(&err)
|
defer mon.Task()(&ctx)(&err)
|
||||||
|
|
||||||
// We do not want to allow account deletion via API currently.
|
// 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.
|
// ChangePassword auth user, changes users password for a new one.
|
||||||
|
Loading…
Reference in New Issue
Block a user