aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2021-02-06 17:18:37 +0100
committerDavid <daullmer@gmail.com>2021-02-06 17:18:37 +0100
commiteb0ff0c37077cc70def96713b257204179c15f80 (patch)
tree8c76f9e0777064327ff753208304c50ba658e699 /Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs
parentf8283d8c207cd816dc16768fe0cb454e1732a963 (diff)
Fix forgot password pin request
Diffstat (limited to 'Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs')
-rw-r--r--Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs b/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs
new file mode 100644
index 000000000..62780e23c
--- /dev/null
+++ b/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel.DataAnnotations;
+
+namespace Jellyfin.Api.Models.UserDtos
+{
+ /// <summary>
+ /// Forgot Password Pin enter request body DTO.
+ /// </summary>
+ public class ForgotPasswordPinDto
+ {
+ /// <summary>
+ /// Gets or sets the entered pin to have the password reset.
+ /// </summary>
+ [Required]
+ public string? Pin { get; set; }
+ }
+}