1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added missing dependencies

This commit is contained in:
Ylian Saint-Hilaire 2019-02-08 14:46:07 -08:00
parent 9ce8829689
commit aff95c9fe8
2 changed files with 5 additions and 3 deletions

View file

@ -377,7 +377,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
}
// Check OTP hardware key
if (domain.yubikey.id && domain.yubikey.secret && user.otphkeys && (user.otphkeys.length > 0) && (typeof (token) == 'string') && (token.length == 44)) {
if ((domain.yubikey != null) && (domain.yubikey.id != null) && (domain.yubikey.secret != null) && (user.otphkeys != null) && (user.otphkeys.length > 0) && (typeof (token) == 'string') && (token.length == 44)) {
var keyId = token.substring(0, 12);
// Find a matching OPT key