diff --git a/controllers/api/user.go b/controllers/api/user.go index 61dd2ff2..5c4cfed5 100644 --- a/controllers/api/user.go +++ b/controllers/api/user.go @@ -215,6 +215,7 @@ func (as *Server) User(w http.ResponseWriter, r *http.Request) { } existingUser.Hash = hash } + existingUser.AccountLocked = ur.AccountLocked err = models.PutUser(&existingUser) if err != nil { JSONResponse(w, models.Response{Success: false, Message: err.Error()}, http.StatusInternalServerError)