mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-12 15:58:34 +00:00
fix the blurb when all recovery codes have been used
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user