aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs')
-rw-r--r--Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs19
1 files changed, 9 insertions, 10 deletions
diff --git a/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs b/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs
index b31c6539c..a0631fd07 100644
--- a/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs
+++ b/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs
@@ -1,16 +1,15 @@
using System.ComponentModel.DataAnnotations;
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// Forgot Password request body DTO.
+/// </summary>
+public class ForgotPasswordDto
{
/// <summary>
- /// Forgot Password request body DTO.
+ /// Gets or sets the entered username to have its password reset.
/// </summary>
- public class ForgotPasswordDto
- {
- /// <summary>
- /// Gets or sets the entered username to have its password reset.
- /// </summary>
- [Required]
- public string? EnteredUsername { get; set; }
- }
+ [Required]
+ required public string EnteredUsername { get; set; }
}