mirror of https://github.com/gophish/gophish
Fixed Account Locked bug, allowing user accounts to be locked
parent
6fb77bf3ce
commit
5ef2d75e72
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue