mirror of
https://github.com/gophish/gophish
synced 2024-11-14 00:07:19 +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:
parent
8e79294413
commit
908886f2cd
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ func (as *Server) Users(w http.ResponseWriter, r *http.Request) {
|
||||||
Role: role,
|
Role: role,
|
||||||
RoleID: role.ID,
|
RoleID: role.ID,
|
||||||
PasswordChangeRequired: ur.PasswordChangeRequired,
|
PasswordChangeRequired: ur.PasswordChangeRequired,
|
||||||
|
AccountLocked: ur.AccountLocked,
|
||||||
}
|
}
|
||||||
err = models.PutUser(&user)
|
err = models.PutUser(&user)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue