Skip to content

Commit

Permalink
Remove old honeypot function (dead code)
Browse files Browse the repository at this point in the history
Removed as part of another PR, but I forgot to
remove the unused function. It just checks if there
is a value and returns the result of that if statement,
with unnecessary logging, so clean that all up.
  • Loading branch information
mckennapsean committed Jun 22, 2019
1 parent 620bec4 commit 0130608
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions form-submission-handler.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
(function() {

function validateHuman(honeypot) {
if (honeypot) { //if hidden form filled up
console.log("Robot Detected!");
return true;
} else {
console.log("Welcome Human!");
}
}

// get all data in form and return object
function getFormData(form) {
var elements = form.elements;
Expand Down

0 comments on commit 0130608

Please sign in to comment.