Fixed incorrect, 2FA backup code notification, #3632

Ylian Saint-Hilaire committed Feb 12, 2022 at 13:26 UTC c8c283eb94d3eb3c8c773b7844ac503eff90ad09
1 file changed +1 -1
views/default.handlebars
+1 -1
@@ -2121,7 +2121,7 @@
2121 if (userinfo.otphkeys > 0) { authFactorCount += userinfo.otphkeys; } // FIDO hardware factor
2122 if ((features & 0x00800000) && (userinfo.otpekey == 1)) { authFactorCount++; } // EMail factor
2123 if ((features & 0x02000000) && (features & 0x04000000) && (userinfo.phone != null)) { authFactorCount++; } // SMS factor
2124 - if ((authFactorCount > 0) && (userinfo.otpkeys > 0) && ((features & 0x40000) == 0)) { authFactorCount++; } // Backup keys
2124 + if ((authFactorCount > 0) && (userinfo.otpkeys > 0) && ((features2 & 0x40000) == 0)) { authFactorCount++; } // Backup keys
2125 return authFactorCount;
2126 }
2127