Make verify() follow the specs and return null
This commit is contained in:
rodzic
d10c328292
commit
0154ab839b
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 = {};
|
||||||
|
|||||||
Ładowanie…
x
Reference in New Issue
Block a user