Return bad request instead of forbid when matchmaking is disabled

Prevents the game client from reauthenticating every time it requests /match
This commit is contained in:
sudokoko 2024-03-17 19:02:06 -04:00
parent 5035dbb63d
commit be452270e3
No known key found for this signature in database
GPG key ID: 248D68C664937395

View file

@ -44,7 +44,7 @@ public class MatchController : ControllerBase
if (user == null) return this.Forbid();
// Do not allow matchmaking if it has been disabled
if (!ServerConfiguration.Instance.Matchmaking.MatchmakingEnabled) return this.Forbid();
if (!ServerConfiguration.Instance.Matchmaking.MatchmakingEnabled) return this.BadRequest();
#region Parse match data