Skip to content

Commit

Permalink
Return bad request instead of forbid when matchmaking is disabled
Browse files Browse the repository at this point in the history
Prevents the game client from reauthenticating every time it requests /match
  • Loading branch information
sudokoko committed Mar 17, 2024
1 parent 5035dbb commit be45227
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<IActionResult> Match()
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

Expand Down

0 comments on commit be45227

Please sign in to comment.