Updated to move the logic for whether the password change can occur, into the controller,

This commit is contained in:
Emma Garland
2021-02-26 12:42:18 +00:00
parent 8f392c252a
commit c36aaabd0e
5 changed files with 27 additions and 51 deletions

View File

@@ -25,25 +25,5 @@ namespace Umbraco.Cms.Core.Models
/// </summary>
[DataMember(Name = "id")]
public int Id { get; set; }
/// <summary>
/// The username of the user/member who is changing the password
/// </summary>
public string CurrentUsername { get; set; }
/// <summary>
/// The ID of the user/member whose password is being changed
/// </summary>
public int SavingUserId { get; set; }
/// <summary>
/// The username of the user/memeber whose password is being changed
/// </summary>
public string SavingUsername { get; set; }
/// <summary>
/// True if the current user has access to change the password for the member/user
/// </summary>
public bool CurrentUserHasSectionAccess { get; set; }
}
}