mirror of
https://github.com/gophish/gophish
synced 2026-06-08 14:28:54 +00:00
Enforce account locks when creating new users (#3173)
Properly enforce account locks when new users are created --------- Co-authored-by: Caetan Tojeiro Carpente <caetan.tojeiro@tier8.com>
This commit is contained in:
@@ -109,6 +109,7 @@ func (as *Server) Users(w http.ResponseWriter, r *http.Request) {
|
||||
Role: role,
|
||||
RoleID: role.ID,
|
||||
PasswordChangeRequired: ur.PasswordChangeRequired,
|
||||
AccountLocked: ur.AccountLocked,
|
||||
}
|
||||
err = models.PutUser(&user)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user