From 0154ab839b7aab2edd27e469a56f01045f439ec7 Mon Sep 17 00:00:00 2001 From: Fazli Sapuan Date: Mon, 9 Jun 2014 13:58:19 +0800 Subject: [PATCH] Make verify() follow the specs and return null --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0d90430..189a9aa 100644 --- a/index.js +++ b/index.js @@ -91,8 +91,8 @@ hotp.verify = function(token, key, opt) { } } - // If we get to here then no codes have matched, return false - return false; + // If we get to here then no codes have matched, return null + return null; }; var totp = {};