mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-08 16:31:20 +02:00
added API Sender test variables
Signed-off-by: RonniSkansing <rskansing@gmail.com>
This commit is contained in:
6 files changed
+384
-32
No files matched your search
@@ -182,10 +182,16 @@ func (a *APISender) SendTest(g *gin.Context) {
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
// parse the optional test values, an empty body means use the defaults
|
||||
var req model.APISenderTestRequest
|
||||
if ok := a.handleParseOptionalRequest(g, &req); !ok {
|
||||
return
|
||||
}
|
||||
data, err := a.APISenderService.SendTest(
|
||||
g.Request.Context(),
|
||||
session,
|
||||
id,
|
||||
&req,
|
||||
)
|
||||
// output the error
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user