diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-01-23 14:17:11 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-01-23 14:17:11 -0600 |
| commit | 81ed61f9f6e76db77a709a6fa024b1ea95df38b3 (patch) | |
| tree | 4a87f7ce708c733e95a9f0e782b1575e9f6428c9 /src/slskd/Controllers/SessionController.cs | |
| parent | cfbf06093202a868fe3c9e5fe26cd17e37e2e295 (diff) | |
| download | slskd-81ed61f9f6e76db77a709a6fa024b1ea95df38b3.tar.gz | |
add note
Diffstat (limited to 'src/slskd/Controllers/SessionController.cs')
| -rw-r--r-- | src/slskd/Controllers/SessionController.cs | 9 |
1 files changed, 5 insertions, 4 deletions
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<slskd.Configuration.Soulseek> SoulseekOptions { get; set; } - private IOptionsSnapshot<slskd.Configuration.Authentication> AuthenticationOptions { get; set; } + private IOptionsSnapshot<Configuration.Soulseek> SoulseekOptions { get; set; } + private IOptionsSnapshot<Configuration.Authentication> AuthenticationOptions { get; set; } private SymmetricSecurityKey JwtSigningKey { get; set; } public SessionController( - IOptionsSnapshot<slskd.Configuration.Soulseek> soulseekOptions, - IOptionsSnapshot<slskd.Configuration.Authentication> authenticationOptions, + IOptionsSnapshot<Configuration.Soulseek> soulseekOptions, + IOptionsSnapshot<Configuration.Authentication> 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(); |
