Make verify() follow the specs and return null

This commit is contained in:
Fazli Sapuan 2014-06-09 13:58:19 +08:00
parent d10c328292
commit 0154ab839b

View File

@ -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 = {};