diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-01-25 12:55:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-25 12:55:06 +0100 |
| commit | e5828cdbf179181f7f891f79637da8819db6de12 (patch) | |
| tree | 2a4ba34e2bd973009546f2474e137e504000e2ad /Jellyfin.Api/Controllers/UserController.cs | |
| parent | f82e6ee8cccc1d3bdfad44255983387878ed8279 (diff) | |
| parent | 77b417e41e76dadfacbff5605c81eeb5ce2d5d2d (diff) | |
Merge pull request #5099 from crobibero/non-required-query-param
Diffstat (limited to 'Jellyfin.Api/Controllers/UserController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/UserController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/UserController.cs b/Jellyfin.Api/Controllers/UserController.cs index 0f0bee4bc..87a4ffd92 100644 --- a/Jellyfin.Api/Controllers/UserController.cs +++ b/Jellyfin.Api/Controllers/UserController.cs @@ -514,7 +514,7 @@ namespace Jellyfin.Api.Controllers /// <returns>A <see cref="Task"/> containing a <see cref="PinRedeemResult"/>.</returns> [HttpPost("ForgotPassword/Pin")] [ProducesResponseType(StatusCodes.Status200OK)] - public async Task<ActionResult<PinRedeemResult>> ForgotPasswordPin([FromBody] string? pin) + public async Task<ActionResult<PinRedeemResult>> ForgotPasswordPin([FromBody, Required] string pin) { var result = await _userManager.RedeemPasswordResetPin(pin).ConfigureAwait(false); return result; |
