mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
forgot duo and push notifications for force2factor #7045
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -2368,6 +2368,8 @@
|
||||
if (userinfo == null) return -1;
|
||||
var authFactorCount = 0;
|
||||
if (userinfo.otpsecret == 1) { authFactorCount++; } // Authenticator time factor
|
||||
if (userinfo.otpduo == 1) { authFactorCount++; } // Duo factor
|
||||
if (userinfo.otpdev == 1) { authFactorCount++; } // Push authentication factor
|
||||
if (userinfo.otphkeys > 0) { authFactorCount += userinfo.otphkeys; } // FIDO hardware factor
|
||||
if ((features & 0x00800000) && (userinfo.otpekey == 1)) { authFactorCount++; } // EMail factor
|
||||
if ((features & 0x02000000) && (features & 0x04000000) && (userinfo.phone != null)) { authFactorCount++; } // SMS factor
|
||||
|
||||
Reference in New Issue
Block a user