mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Return error for 2FA token generation action (#2429)
This commit is contained in:
@@ -106,7 +106,9 @@ namespace ArchiSteamFarm.Steam.Interaction {
|
||||
|
||||
string? token = await Bot.BotDatabase.MobileAuthenticator.GenerateToken().ConfigureAwait(false);
|
||||
|
||||
return (true, token, Strings.Success);
|
||||
bool success = !string.IsNullOrEmpty(token);
|
||||
|
||||
return (success, token, success ? Strings.Success : Strings.WarningFailed);
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
|
||||
Reference in New Issue
Block a user