diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Startup.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index 26ffe4a6..e806fdfd 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -40,6 +40,7 @@ namespace slskd using Prometheus.SystemMetrics; using Serilog; using Serilog.Events; + using slskd.API.Authentication; using slskd.Entities; using slskd.Security; using slskd.Trackers; @@ -129,7 +130,8 @@ namespace slskd services.AddAuthentication(PassthroughAuthentication.AuthenticationScheme) .AddScheme<PassthroughAuthenticationOptions, PassthroughAuthenticationHandler>(PassthroughAuthentication.AuthenticationScheme, options => { - options.Username = "n/a"; + options.Username = "Anonymous"; + options.Role = Role.Administrator; }); } |
