Merge pull request #12 from fuzzie360/master
Make verify() follow the specs and actually return null on failure
Esse commit está contido em:
commit
3c9391bc36
4
index.js
4
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 = {};
|
||||
|
Carregando…
x
Referência em uma nova issue
Block a user