From 81ed61f9f6e76db77a709a6fa024b1ea95df38b3 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 23 Jan 2021 14:17:11 -0600 Subject: add note --- src/slskd/Controllers/SessionController.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/slskd/Controllers/SessionController.cs b/src/slskd/Controllers/SessionController.cs index 82155511..e223032e 100644 --- a/src/slskd/Controllers/SessionController.cs +++ b/src/slskd/Controllers/SessionController.cs @@ -22,13 +22,13 @@ [Consumes("application/json")] public class SessionController : ControllerBase { - private IOptionsSnapshot SoulseekOptions { get; set; } - private IOptionsSnapshot AuthenticationOptions { get; set; } + private IOptionsSnapshot SoulseekOptions { get; set; } + private IOptionsSnapshot AuthenticationOptions { get; set; } private SymmetricSecurityKey JwtSigningKey { get; set; } public SessionController( - IOptionsSnapshot soulseekOptions, - IOptionsSnapshot authenticationOptions, + IOptionsSnapshot soulseekOptions, + IOptionsSnapshot authenticationOptions, SymmetricSecurityKey jwtSigningKey) { SoulseekOptions = soulseekOptions; @@ -100,6 +100,7 @@ .Where(u => u.Name == login.Username) .FirstOrDefault(); + // todo: allow login with root creds if (user == default) { return Unauthorized(); -- cgit v1.2.3