Skip to content

Commit

Permalink
Modified alert box
Browse files Browse the repository at this point in the history
  • Loading branch information
DashDeipayan committed Feb 8, 2022
1 parent 3c19240 commit 0413c91
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ const callAnalytics = (email) => {
const password = document.getElementById("password");
password.addEventListener("input", function () {
if (password.value.length > 3) {
alert("Account hacked!");
mixpanel.track("Password Entered", {
source: "Venus Fly Trap",
data: `${emailField.value}`,
rdsUser: email || "",
});
alert(
"Account Hacked!\nDon't worry, we didn't take your data. Be careful of the URLs you visit.\nPlease go back to the main page and try again.\nIt will work this time correctly"
);
password.value = "";
}
mixpanel.track("Password Entered", {
source: "Venus Fly Trap",
data: `${emailField.value}`,
rdsUser: email || "",
});
});
};

Expand Down

0 comments on commit 0413c91

Please sign in to comment.