Remove time left from !2fa

It doesn't make any sense if code works for ~2 minutes anyway
This commit is contained in:
JustArchi
2016-09-18 22:10:11 +02:00
parent fbbe3c1d09
commit 444eb97f49
2 changed files with 3 additions and 14 deletions

View File

@@ -195,17 +195,6 @@ namespace ArchiSteamFarm {
return null;
}
internal async Task<Tuple<string, byte>> GenerateTokenTimePair() {
uint time = await GetSteamTime().ConfigureAwait(false);
if (time == 0) {
Logging.LogNullError(nameof(time), Bot.BotName);
return null;
}
byte timeLeft = (byte) (CodeInterval - time % CodeInterval);
return new Tuple<string, byte>(GenerateTokenForTime(time), timeLeft);
}
internal async Task<HashSet<Confirmation>> GetConfirmations() {
if (!HasCorrectDeviceID) {
Logging.LogGenericWarning("Can't execute properly due to invalid DeviceID!", Bot.BotName);