mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Remove time left from !2fa
It doesn't make any sense if code works for ~2 minutes anyway
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user