using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Models;
///
/// A model representing the data required to set a member/user password depending on the provider installed.
///
public class ChangingPasswordModel
{
///
/// The password value
///
[DataMember(Name = "newPassword")]
public required string NewPassword { get; set; }
///
/// The old password - used to change a password when: EnablePasswordRetrieval = false
///
[DataMember(Name = "oldPassword")]
public string? OldPassword { get; set; }
///
/// The ID of the current user/member requesting the password change
/// For users, required to allow changing password without the entire UserSave model
///
[DataMember(Name = "id")]
public int Id { get; set; }
}