From a7f65bd2056253f87f2f99f0cd82d12499202dd7 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Mon, 25 Jan 2021 12:55:06 +0100 Subject: Merge pull request #5099 from crobibero/non-required-query-param (cherry picked from commit e5828cdbf179181f7f891f79637da8819db6de12) Signed-off-by: Joshua M. Boniface --- Jellyfin.Api/Controllers/UserController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Jellyfin.Api/Controllers/UserController.cs') diff --git a/Jellyfin.Api/Controllers/UserController.cs b/Jellyfin.Api/Controllers/UserController.cs index 8256e3782..c3452f923 100644 --- a/Jellyfin.Api/Controllers/UserController.cs +++ b/Jellyfin.Api/Controllers/UserController.cs @@ -514,7 +514,7 @@ namespace Jellyfin.Api.Controllers /// A containing a . [HttpPost("ForgotPassword/Pin")] [ProducesResponseType(StatusCodes.Status200OK)] - public async Task> ForgotPasswordPin([FromBody] string? pin) + public async Task> ForgotPasswordPin([FromBody, Required] string pin) { var result = await _userManager.RedeemPasswordResetPin(pin).ConfigureAwait(false); return result; -- cgit v1.2.3