From c8c283eb94d3eb3c8c773b7844ac503eff90ad09 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sat, 12 Feb 2022 13:26:45 -0800 Subject: [PATCH] Fixed incorrect, 2FA backup code notification, #3632 --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default.handlebars b/views/default.handlebars index 73dc53e9..0168d700 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2121,7 +2121,7 @@ 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 - if ((authFactorCount > 0) && (userinfo.otpkeys > 0) && ((features & 0x40000) == 0)) { authFactorCount++; } // Backup keys + if ((authFactorCount > 0) && (userinfo.otpkeys > 0) && ((features2 & 0x40000) == 0)) { authFactorCount++; } // Backup keys return authFactorCount; }