Merge pull request #12 from fuzzie360/master
Make verify() follow the specs and actually return null on failure
Dieser Commit ist enthalten in:
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
|
// If we get to here then no codes have matched, return null
|
||||||
return false;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
var totp = {};
|
var totp = {};
|
||||||
|
|||||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren