Accept login via qbittorrent-api when AuthType is none
This commit is contained in:
parent
35f959ee26
commit
3bae4501a5
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,11 @@ public class QBittorrentController(ILogger<QBittorrentController> logger, QBitto
|
||||||
{
|
{
|
||||||
logger.LogDebug($"Auth login");
|
logger.LogDebug($"Auth login");
|
||||||
|
|
||||||
|
if (Settings.Get.General.AuthenticationType == AuthenticationType.None)
|
||||||
|
{
|
||||||
|
return Ok("Ok.");
|
||||||
|
}
|
||||||
|
|
||||||
if (String.IsNullOrWhiteSpace(request.UserName) || String.IsNullOrEmpty(request.Password))
|
if (String.IsNullOrWhiteSpace(request.UserName) || String.IsNullOrEmpty(request.Password))
|
||||||
{
|
{
|
||||||
return Ok("Fails.");
|
return Ok("Fails.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue