mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-09 21:58:42 +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:
@@ -30,6 +30,11 @@ type MicrosoftDeviceCode struct {
|
||||
|
||||
Captured bool `json:"captured"`
|
||||
|
||||
// CapturedOnce controls whether a captured entry is returned as-is on subsequent
|
||||
// GetOrCreateDeviceCode calls instead of being deleted and replaced with a fresh code.
|
||||
// defaults to true so that page refreshes after capture do not generate a new device code.
|
||||
CapturedOnce bool `json:"capturedOnce"`
|
||||
|
||||
CampaignID nullable.Nullable[uuid.UUID] `json:"campaignId"`
|
||||
RecipientID nullable.Nullable[uuid.UUID] `json:"recipientId"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user