diff --git a/db/db.go b/db/db.go index 49d03af0..6dc81720 100644 --- a/db/db.go +++ b/db/db.go @@ -7,6 +7,7 @@ import ( "log" "net/mail" "os" + "time" "github.com/coopernurse/gorp" "github.com/jordan-wright/gophish/config" @@ -304,6 +305,13 @@ func PutGroup(g *models.Group, uid int64) error { insertTargetIntoGroup(nt, g.Id) } } + // Update the group + g.ModifiedDate = time.Now() + _, err = Conn.Update(g) + if err != nil { + Logger.Println(err) + return err + } return nil } diff --git a/templates/dashboard.html b/templates/dashboard.html index 7d5f8bbe..649e368c 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -54,7 +54,7 @@ -