From 65d9f4fbee2b7757aaf25657af56693c52bc0788 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 16 Feb 2016 08:11:07 +0100 Subject: [PATCH] SteamAuth sync --- SteamAuth/AuthenticatorLinker.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SteamAuth/AuthenticatorLinker.cs b/SteamAuth/AuthenticatorLinker.cs index a65959ecc6543..d5a99c513a6ee 100644 --- a/SteamAuth/AuthenticatorLinker.cs +++ b/SteamAuth/AuthenticatorLinker.cs @@ -101,8 +101,9 @@ public LinkResult AddAuthenticator() public FinalizeResult FinalizeAddAuthenticator(string smsCode) { //The act of checking the SMS code is necessary for Steam to finalize adding the phone number to the account. - bool smsCodeGood = this._checkSMSCode(smsCode); - if (!smsCodeGood) + //Of course, we only want to check it if we're adding a phone number in the first place... + + if (!String.IsNullOrEmpty(this.PhoneNumber) && !this._checkSMSCode(smsCode)) { return FinalizeResult.BadSMSCode; } @@ -147,7 +148,6 @@ public FinalizeResult FinalizeAddAuthenticator(string smsCode) if (finalizeResponse.Response.WantMore) { - smsCodeGood = true; tries++; continue; }