Skip to content

Commit 0849024

Browse files
committed
Fix adding an authenticator always resulting in an error
1 parent d59c99e commit 0849024

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Steam Desktop Authenticator/LoginForm.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ private async void btnSteamLogin_Click(object sender, EventArgs e)
197197

198198
case AuthenticatorLinker.LinkResult.AuthenticatorPresent:
199199
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);
200-
break;
200+
this.Close();
201+
return;
201202

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

215-
default:
216216
case AuthenticatorLinker.LinkResult.GeneralFailure:
217217
MessageBox.Show("Error adding your authenticator.", "Steam Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
218218
this.Close();
219219
return;
220220
}
221-
}
221+
} // End while loop checking for AwaitingFinalization
222222

223223
Manifest manifest = Manifest.GetManifest();
224224
string passKey = null;

0 commit comments

Comments
 (0)