mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-24 19:32:36 +02:00
Add captured once behavior to device code phishing, update template keys and fix unneeded api calls
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -39,6 +39,7 @@ func (r *MicrosoftDeviceCode) Insert(
|
||||
"refresh_token": "",
|
||||
"id_token": "",
|
||||
"captured": false,
|
||||
"captured_once": entry.CapturedOnce,
|
||||
}
|
||||
if v, err := entry.CampaignID.Get(); err == nil {
|
||||
row["campaign_id"] = v.String()
|
||||
@@ -168,6 +169,7 @@ func toMicrosoftDeviceCode(row *database.MicrosoftDeviceCode) *model.MicrosoftDe
|
||||
RefreshToken: row.RefreshToken,
|
||||
IDToken: row.IDToken,
|
||||
Captured: row.Captured,
|
||||
CapturedOnce: row.CapturedOnce,
|
||||
CampaignID: campaignID,
|
||||
RecipientID: recipientID,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user