From 5ef2d75e72a0e1425aa18deacebbc4bf73b617a9 Mon Sep 17 00:00:00 2001 From: Glenn Wilkinson Date: Sat, 11 Jun 2022 11:25:56 +0100 Subject: [PATCH] Fixed Account Locked bug, allowing user accounts to be locked --- controllers/api/user.go | 1 + 1 file changed, 1 insertion(+) 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)