diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-01-31 10:47:53 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-01-31 10:47:53 -0600 |
| commit | ba021c7994ae0776927706409b17bd4b9e48e9b0 (patch) | |
| tree | 479dee1cda16495993e1cfd5f97d35a473b9e71e /src/slskd/Controllers/SessionController.cs | |
| parent | c3b847dae230917ebe95c095fa9311687f58340f (diff) | |
| download | slskd-ba021c7994ae0776927706409b17bd4b9e48e9b0.tar.gz | |
update option
Diffstat (limited to 'src/slskd/Controllers/SessionController.cs')
| -rw-r--r-- | src/slskd/Controllers/SessionController.cs | 4 |
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))); } |
