mirror of https://github.com/gophish/gophish
Return an SMTP object via GET /campaigns
parent
c066fa9d52
commit
abec9adfba
|
@ -143,6 +143,10 @@ func GetCampaigns(uid int64) ([]Campaign, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Logger.Println(err)
|
Logger.Println(err)
|
||||||
}
|
}
|
||||||
|
err = db.Table("SMTP").Where("id=?", cs[i].SMTPId).Find(&cs[i].SMTP).Error
|
||||||
|
if err != nil {
|
||||||
|
Logger.Println(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return cs, err
|
return cs, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue