Ensures new user objects are approved by default.

This commit is contained in:
Shannon
2014-02-17 11:17:15 +11:00
parent 4069fc8d1f
commit 81cdc71145

View File

@@ -34,6 +34,8 @@ namespace Umbraco.Core.Models.Membership
_removedSections = new List<string>();
_language = GlobalSettings.DefaultUILanguage;
_sectionCollection.CollectionChanged += SectionCollectionChanged;
_isApproved = true;
_isLockedOut = false;
}
public User(string name, string email, string username, string password, IUserType userType)
@@ -42,7 +44,9 @@ namespace Umbraco.Core.Models.Membership
_name = name;
_email = email;
_username = username;
_password = password;
_password = password;
_isApproved = true;
_isLockedOut = false;
}
private IUserType _userType;