aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Controllers/SessionController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Controllers/SessionController.cs')
-rw-r--r--src/slskd/Controllers/SessionController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Controllers/SessionController.cs b/src/slskd/Controllers/SessionController.cs
index 92e182d0..235e65cf 100644
--- a/src/slskd/Controllers/SessionController.cs
+++ b/src/slskd/Controllers/SessionController.cs
@@ -45,7 +45,7 @@
[ProducesResponseType(typeof(bool), 200)]
public IActionResult Enabled()
{
- return base.Ok(!Options.Web.NoAuth);
+ return base.Ok(!Options.Web.Authentication.Disable);
}
/// <summary>
@@ -95,7 +95,7 @@
}
// only admin login for now
- if (Options.Username == login.Username && Options.Password == login.Password)
+ if (Options.Web.Authentication.Username == login.Username && Options.Web.Authentication.Password == login.Password)
{
return Ok(new TokenResponse(GetJwtSecurityToken(login.Username, Role.Administrator)));
}