aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-06-18 19:35:29 +0200
committerDavid <daullmer@gmail.com>2020-06-18 19:35:29 +0200
commit77bea567082528be3d1da09ed214ec0a1e192a97 (patch)
tree6728a2ef53b5181c5fadee78b9674a87bbb1411a /Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs
parent762eeb51e66368e5f6fdede7b6fab84ea5859107 (diff)
Add request body models
Diffstat (limited to 'Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs')
-rw-r--r--Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs b/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs
new file mode 100644
index 000000000..0a173ea1a
--- /dev/null
+++ b/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs
@@ -0,0 +1,23 @@
+namespace Jellyfin.Api.Models.UserDtos
+{
+ /// <summary>
+ /// The update user easy password request body.
+ /// </summary>
+ public class UpdateUserEasyPassword
+ {
+ /// <summary>
+ /// Gets or sets the new sha1-hashed password.
+ /// </summary>
+ public string? NewPassword { get; set; }
+
+ /// <summary>
+ /// Gets or sets the new password.
+ /// </summary>
+ public string? NewPw { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether to reset the password.
+ /// </summary>
+ public bool ResetPassword { get; set; }
+ }
+}