Skip to content

Commit

Permalink
SteamAuth sync
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Feb 16, 2016
1 parent 935e11a commit 65d9f4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SteamAuth/AuthenticatorLinker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -147,7 +148,6 @@ public FinalizeResult FinalizeAddAuthenticator(string smsCode)

if (finalizeResponse.Response.WantMore)
{
smsCodeGood = true;
tries++;
continue;
}
Expand Down

0 comments on commit 65d9f4f

Please sign in to comment.