fix the blurb when all recovery codes have been used

This commit is contained in:
dovholuknf
2021-04-06 16:20:07 -04:00
parent 9afa491ce2
commit e1789c51e4
+5 -2
View File
@@ -252,8 +252,11 @@ namespace ZitiDesktopEdge {
if (IdentityMenu.IsVisible) {
if (isComplete) {
if (MFASetup.Type == 2) {
if (IdentityMenu.Identity.MFAInfo.RecoveryCodes.Length==0) ShowBlurbAsync("You do not have anymore recovery codes", this.RECOVER);
else ShowRecovery(IdentityMenu.Identity);
if (IdentityMenu.Identity.MFAInfo?.RecoveryCodes?.Length > 0) {
ShowRecovery(IdentityMenu.Identity);
} else {
ShowBlurbAsync("You do not have anymore recovery codes", this.RECOVER);
}
} else if (MFASetup.Type == 3) {
IdentityMenu.Identity.IsMFAEnabled = false;
IdentityMenu.Identity.MFAInfo.IsAuthenticated = false;