From 3bae4501a519086224bfc489f203b545ba54de69 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 27 Oct 2024 18:02:32 +0100 Subject: [PATCH] Accept login via qbittorrent-api when AuthType is none --- server/RdtClient.Web/Controllers/QBittorrentController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/RdtClient.Web/Controllers/QBittorrentController.cs b/server/RdtClient.Web/Controllers/QBittorrentController.cs index 4fdfd77..a527f7b 100644 --- a/server/RdtClient.Web/Controllers/QBittorrentController.cs +++ b/server/RdtClient.Web/Controllers/QBittorrentController.cs @@ -21,6 +21,11 @@ public class QBittorrentController(ILogger logger, QBitto { logger.LogDebug($"Auth login"); + if (Settings.Get.General.AuthenticationType == AuthenticationType.None) + { + return Ok("Ok."); + } + if (String.IsNullOrWhiteSpace(request.UserName) || String.IsNullOrEmpty(request.Password)) { return Ok("Fails.");