diff options
| author | David <daullmer@gmail.com> | 2020-06-18 19:35:29 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-06-18 19:35:29 +0200 |
| commit | 77bea567082528be3d1da09ed214ec0a1e192a97 (patch) | |
| tree | 6728a2ef53b5181c5fadee78b9674a87bbb1411a /Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs | |
| parent | 762eeb51e66368e5f6fdede7b6fab84ea5859107 (diff) | |
Add request body models
Diffstat (limited to 'Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs')
| -rw-r--r-- | Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs | 28 |
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; } + } +} |
