diff options
| author | crobibero <cody@robibe.ro> | 2020-06-20 16:26:42 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-20 16:26:42 -0600 |
| commit | b603742a77bc67a1b689ab88b278be2b9c07480e (patch) | |
| tree | 295999fb1e616fa489805fa3b1da08c792c13d71 /Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs | |
| parent | cd273c4e98246420edf39ef63c906fbc3725d8e4 (diff) | |
| parent | deac459b62de53ed3db0e24fe1ebde95bf10dccd (diff) | |
Merge remote-tracking branch 'upstream/api-migration' into api-image-service
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; } + } +} |
