Fixed Account Locked bug, allowing user accounts to be locked

pull/2507/head
Glenn Wilkinson 2022-06-11 11:25:56 +01:00
parent 6fb77bf3ce
commit 5ef2d75e72
1 changed files with 1 additions and 0 deletions

View File

@ -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)