mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-07-06 04:17:54 +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:
@@ -40,6 +40,11 @@ type MicrosoftDeviceCode struct {
|
||||
// captured is true after successfully polling and getting a token
|
||||
Captured bool `gorm:"not null;default:false"`
|
||||
|
||||
// captured_once 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 `gorm:"not null;default:true"`
|
||||
|
||||
// foreign keys
|
||||
CampaignID *uuid.UUID `gorm:"not null;type:uuid;index;"`
|
||||
RecipientID *uuid.UUID `gorm:"type:uuid;index;"`
|
||||
|
||||
Reference in New Issue
Block a user