Skip to content

Commit 44f675e

Browse files
authored
Merge pull request #54 from HailBytes/claude/funny-hamilton-7djyar
fix(landing-pages): remove invalid GoPhish variable and intrusive auto-confirm in education-notification.html
2 parents fe03a10 + a05088b commit 44f675e

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

landing-pages/education-notification.html

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,32 +229,25 @@ <h3>Recommended Next Steps</h3>
229229
<p><strong>Remember:</strong> The best defense against phishing is awareness and vigilance.</p>
230230
<p>Always verify unexpected requests for credentials, payments, or sensitive information.</p>
231231
<p style="margin-top: 16px;">Questions about this training? Contact the Information Security Team at security@company.com</p>
232-
<p style="margin-top: 16px;">© 2024 Company Information Security Program</p>
232+
<p style="margin-top: 16px;">© 2025 Company Information Security Program</p>
233233
</div>
234234
</div>
235235

236236
<script>
237237
function startTraining() {
238-
// Redirect to the appropriate educational module based on campaign type
239-
var campaignType = '{{.CampaignType}}' || 'general';
240-
window.location.href = '/education/' + campaignType + '_education.html';
238+
// Update this URL to the education page for this specific campaign.
239+
// {{.CampaignType}} is not a GoPhish variable; set the path explicitly
240+
// per campaign (e.g. /education/microsoft_education.html).
241+
window.location.href = '/education/general_education.html';
241242
}
242243

243244
function closeWindow() {
244-
// Attempt to close the window or redirect to company homepage
245245
if (window.opener) {
246246
window.close();
247247
} else {
248248
window.location.href = 'https://company.com';
249249
}
250250
}
251-
252-
// Optional: Auto-prompt for training after 15 seconds
253-
setTimeout(function() {
254-
if (confirm('Would you like to start the security awareness training now?')) {
255-
startTraining();
256-
}
257-
}, 15000);
258251
</script>
259252
</body>
260253
</html>

0 commit comments

Comments
 (0)