2013-11-07 17:16:22 +01:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <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>
|
2017-07-20 11:21:28 +02:00
|
|
|
|
/// The old password - used to change a password when: EnablePasswordRetrieval = false
|
2013-11-07 17:16:22 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "oldPassword")]
|
|
|
|
|
|
public string OldPassword { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Set to true if the password is to be reset - only valid when: EnablePasswordReset = true
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "reset")]
|
|
|
|
|
|
public bool? Reset { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-07-20 11:21:28 +02:00
|
|
|
|
/// The password answer - required for reset when: RequiresQuestionAndAnswer = true
|
2013-11-07 17:16:22 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "answer")]
|
|
|
|
|
|
public string Answer { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is filled in on the server side if the password has been reset/generated
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "generatedPassword")]
|
|
|
|
|
|
public string GeneratedPassword { get; set; }
|
|
|
|
|
|
}
|
2017-05-12 14:49:44 +02:00
|
|
|
|
}
|