This commit is contained in:
Łukasz Domeradzki 2024-04-10 15:42:00 +02:00
parent e47bd9faa4
commit a0ecb78086
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -81,19 +81,19 @@ internal sealed class BotCredentialsProvider : IAuthenticator {
Bot.ArchiLogger.LogGenericWarning(string.Format(CultureInfo.CurrentCulture, Strings.BotUnableToLogin, reason, reason));
if (++LoginFailures >= MaxLoginFailures) {
await CancellationTokenSource.CancelAsync().ConfigureAwait(false);
await CancellationTokenSource.CancelAsync().ConfigureAwait(false);
return "";
}
return "";
}
string? result = await Bot.RequestInput(inputType, previousCodeWasIncorrect).ConfigureAwait(false);
if (string.IsNullOrEmpty(result)) {
await CancellationTokenSource.CancelAsync().ConfigureAwait(false);
return "";
}
return result ?? "";
return result;
}
}