mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-14 00:29:48 +00:00
On MFA Event Update UI
This commit is contained in:
@@ -110,11 +110,15 @@ namespace ZitiDesktopEdge {
|
||||
string url = HttpUtility.UrlDecode(mfa.ProvisioningUrl);
|
||||
string secret = HttpUtility.ParseQueryString(url)["secret"];
|
||||
this.IdentityMenu.Identity.MFAInfo.RecoveryCodes = mfa?.RecoveryCodes?.ToArray();
|
||||
SetupMFA(this.IdentityMenu.Identity, url, secret);
|
||||
ShowMFARecoveryCodes(this.IdentityMenu.Identity);
|
||||
} else if (mfa.Action == "auth_challenge") {
|
||||
ShowBlurb("Setting Up auth_challenge", "");
|
||||
} else if (mfa.Action == "auth_response") {
|
||||
if (mfa.IsVerified) {
|
||||
if (this.IdentityMenu.Identity.Fingerprint==mfa.Fingerprint) {
|
||||
this.IdentityMenu.Identity.MFAInfo.IsAuthenticated = mfa.IsVerified;
|
||||
this.IdentityMenu.UpdateView();
|
||||
}
|
||||
HideModal();
|
||||
} else {
|
||||
ShowBlurb("Provided code could not be verified", "");
|
||||
|
||||
Reference in New Issue
Block a user