SteamAuth sync

This commit is contained in:
JustArchi
2016-02-16 08:11:07 +01:00
parent 935e11ab2a
commit 65d9f4fbee

View File

@@ -101,8 +101,9 @@ namespace SteamAuth
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 @@ namespace SteamAuth
if (finalizeResponse.Response.WantMore)
{
smsCodeGood = true;
tries++;
continue;
}