aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs
diff options
context:
space:
mode:
authorPatrick Barron <18354464+barronpm@users.noreply.github.com>2020-06-20 16:52:58 +0000
committerGitHub <noreply@github.com>2020-06-20 16:52:58 +0000
commit804764e1fbf71e083479fc4069f90bab96faa84f (patch)
tree957a44eed3678ad72e9272b3bc4aa20c939f7d36 /Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs
parente26f487fc8c7f0c5e2926c87845d030ff64ab60d (diff)
parent68ea589f1af5bc5fdc656013d6e5d1deec99341f (diff)
Merge pull request #3363 from Ullmie02/api-user
Move UserService to Jellyfin.Api
Diffstat (limited to 'Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs')
-rw-r--r--Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs b/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs
new file mode 100644
index 000000000..8288dbbc4
--- /dev/null
+++ b/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs
@@ -0,0 +1,28 @@
+namespace Jellyfin.Api.Models.UserDtos
+{
+ /// <summary>
+ /// The update user password request body.
+ /// </summary>
+ public class UpdateUserPassword
+ {
+ /// <summary>
+ /// Gets or sets the current sha1-hashed password.
+ /// </summary>
+ public string? CurrentPassword { get; set; }
+
+ /// <summary>
+ /// Gets or sets the current plain text password.
+ /// </summary>
+ public string? CurrentPw { get; set; }
+
+ /// <summary>
+ /// Gets or sets the new plain text 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; }
+ }
+}