Fix 'AR' ACS check

This commit is contained in:
Bryan Ashby 2019-05-11 00:19:11 -06:00
parent afa856eaf3
commit 401d0a10b1
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
2 changed files with 4 additions and 4 deletions

View File

@ -994,8 +994,8 @@ function peg$parse(input, options) {
return false;
}
switch(value) {
case 1 : return user.authFactor >= User.AuthFactors.Factor1;
case 2 : return user.authFactor >= User.AuthFActors.Factor2;
case 1 : return true;
case 2 : return user.getProperty(UserProps.AuthFactor2OTP) ? true : false;
default : return false;
}
},

View File

@ -150,8 +150,8 @@
return false;
}
switch(value) {
case 1 : return user.authFactor >= User.AuthFactors.Factor1;
case 2 : return user.authFactor >= User.AuthFActors.Factor2;
case 1 : return true;
case 2 : return user.getProperty(UserProps.AuthFactor2OTP) ? true : false;
default : return false;
}
},