mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 22:48:20 +01:00
Fix unauth'd / requests failing on non-browsers
This commit is contained in:
@@ -109,8 +109,7 @@ namespace Tgstation.Server.Host.Controllers
|
||||
databaseContext,
|
||||
authenticationContextFactory,
|
||||
logger,
|
||||
(browserResolver ?? throw new ArgumentNullException(nameof(browserResolver))).Browser.Type != BrowserType.Generic
|
||||
&& !(controlPanelConfigurationOptions?.Value ?? throw new ArgumentNullException(nameof(controlPanelConfigurationOptions))).Enable)
|
||||
false)
|
||||
{
|
||||
this.tokenFactory = tokenFactory ?? throw new ArgumentNullException(nameof(tokenFactory));
|
||||
this.systemIdentityFactory = systemIdentityFactory ?? throw new ArgumentNullException(nameof(systemIdentityFactory));
|
||||
|
||||
Reference in New Issue
Block a user