mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-09 08:51:09 +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:
1 parent
198c3a0f29
commit
fc5e8e199b
7 files changed
+76
-5
No files matched your search
@@ -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