Updates member repository and tests to ensure that an existing password will not be replaced if the password specified is null or empty.

This commit is contained in:
Shannon
2013-10-10 12:22:38 +11:00
parent a87b37d6ca
commit 71e6ea70b2
3 changed files with 93 additions and 4 deletions

View File

@@ -20,6 +20,17 @@ namespace Umbraco.Core.Models
private object _providerUserKey;
private Type _userTypeKey;
/// <summary>
/// Constructor for creating a Member object
/// </summary>
/// <param name="name">Name of the content</param>
/// <param name="contentType">ContentType for the current Content object</param>
public Member(string name, IMemberType contentType)
: base(name, -1, contentType, new PropertyCollection())
{
_contentType = contentType;
}
public Member(string name, string email, string username, string password, int parentId, IMemberType contentType)
: base(name, parentId, contentType, new PropertyCollection())
{