diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-01-25 12:55:06 +0100 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2021-02-21 13:29:02 -0500 |
| commit | a7f65bd2056253f87f2f99f0cd82d12499202dd7 (patch) | |
| tree | 4084b5bef8c0bd387d2e83deaecef1b2a892e40d /Jellyfin.Api/Controllers/UserController.cs | |
| parent | 8138fc30030bba1624581bf128fac2328eed13d3 (diff) | |
Merge pull request #5099 from crobibero/non-required-query-param
(cherry picked from commit e5828cdbf179181f7f891f79637da8819db6de12)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
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 8256e3782..c3452f923 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; |
