2021-02-20 19:16:31 +00:00
|
|
|
using System.Runtime.Serialization;
|
2018-06-29 19:52:40 +02:00
|
|
|
|
2021-02-18 11:06:02 +01: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; }
|
|
|
|
|
|
2020-01-29 09:17:08 +01:00
|
|
|
/// <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
|
2020-01-29 09:17:08 +01:00
|
|
|
/// </summary>
|
|
|
|
|
[DataMember(Name = "id")]
|
|
|
|
|
public int Id { get; set; }
|
2018-06-29 19:52:40 +02:00
|
|
|
}
|
|
|
|
|
}
|