aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Controllers
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-01-18 22:34:47 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-01-18 22:34:47 -0600
commitf03fce8e3b542fe3a0925e70bfa01a062e00c84d (patch)
tree5b9a9816ca7b7e90e8aef201fd3dd2e46b1a34f2 /src/slskd/Controllers
parent9a56c438f08238fef633a30124d853c18445803e (diff)
downloadslskd-f03fce8e3b542fe3a0925e70bfa01a062e00c84d.tar.gz
use feature flags for prometheus and swagger. refactor handling of auth disable
Diffstat (limited to 'src/slskd/Controllers')
-rw-r--r--src/slskd/Controllers/SessionController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Controllers/SessionController.cs b/src/slskd/Controllers/SessionController.cs
index 0f849a2a..5c162708 100644
--- a/src/slskd/Controllers/SessionController.cs
+++ b/src/slskd/Controllers/SessionController.cs
@@ -34,7 +34,7 @@
[ProducesResponseType(typeof(bool), 200)]
public IActionResult Enabled()
{
- return Ok(Startup.EnableSecurity);
+ return Ok(!Program.DisableAuthentication);
}
/// <summary>