diff options
| author | crobibero <cody@robibe.ro> | 2021-01-24 15:02:56 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2021-01-24 15:02:56 -0700 |
| commit | 77b417e41e76dadfacbff5605c81eeb5ce2d5d2d (patch) | |
| tree | b47883fd73078414265d2fdb953ac8334a8c621a /Jellyfin.Api/Controllers/UserController.cs | |
| parent | ef97ead707a100f1599d22a7b37095ed6f3fd041 (diff) | |
Mark non-nullable body as null
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; |
