mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
Move configuration and revert logout changes
This commit is contained in:
parent
b84bf02373
commit
63b61d831c
3 changed files with 12 additions and 9 deletions
|
@ -67,9 +67,12 @@ public class LoginController : ControllerBase
|
|||
|
||||
UserEntity? user;
|
||||
|
||||
if (!PatchworkHelper.UserHasValidPatchworkUserAgent(this.Request.Headers.UserAgent.ToString()))
|
||||
if (ServerConfiguration.Instance.Authentication.RequirePatchworkUserAgent)
|
||||
{
|
||||
return this.Forbid();
|
||||
if (!PatchworkHelper.UserHasValidPatchworkUserAgent(this.Request.Headers.UserAgent.ToString()))
|
||||
{
|
||||
return this.Forbid();
|
||||
}
|
||||
}
|
||||
|
||||
switch (npTicket.Platform)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue