Files
Umbraco-CMS/src/Umbraco.Core/Models/ChangingPasswordModel.cs

30 lines
962 B
C#
Raw Normal View History

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