Merge pull request #12 from fuzzie360/master

Make verify() follow the specs and actually return null on failure
This commit is contained in:
Guy Halford-Thompson 2014-06-12 16:03:26 -07:00
commit 3c9391bc36

View File

@ -91,8 +91,8 @@ hotp.verify = function(token, key, opt) {
} }
} }
// If we get to here then no codes have matched, return false // If we get to here then no codes have matched, return null
return false; return null;
}; };
var totp = {}; var totp = {};