Skip to content

Commit

Permalink
Fix adding an authenticator always resulting in an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessecar96 committed Jul 6, 2023
1 parent d59c99e commit 0849024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Steam Desktop Authenticator/LoginForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ private async void btnSteamLogin_Click(object sender, EventArgs e)

case AuthenticatorLinker.LinkResult.AuthenticatorPresent:
MessageBox.Show("This account already has an authenticator linked. You must remove that authenticator to add SDA as your authenticator.", "Steam Login", MessageBoxButtons.OK, MessageBoxIcon.Error);
break;
this.Close();
return;

case AuthenticatorLinker.LinkResult.FailureAddingPhone:
MessageBox.Show("Failed to add your phone number. Please try again or use a different phone number.", "Steam Login", MessageBoxButtons.OK, MessageBoxIcon.Error);
Expand All @@ -212,13 +213,12 @@ private async void btnSteamLogin_Click(object sender, EventArgs e)
MessageBox.Show("Please check your email, and click the link Steam sent you before continuing.", "Steam Login", MessageBoxButtons.OK, MessageBoxIcon.Information);
break;

default:
case AuthenticatorLinker.LinkResult.GeneralFailure:
MessageBox.Show("Error adding your authenticator.", "Steam Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.Close();
return;
}
}
} // End while loop checking for AwaitingFinalization

Manifest manifest = Manifest.GetManifest();
string passKey = null;
Expand Down

0 comments on commit 0849024

Please sign in to comment.