removes ability to configure custom fields for the new membership provider
This commit is contained in:
@@ -22,10 +22,10 @@ namespace Umbraco.Web.Security.Providers
|
||||
{
|
||||
public MembersMembershipProvider()
|
||||
: this(ApplicationContext.Current.Services.MemberService)
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
public MembersMembershipProvider(IMembershipMemberService<IMember> memberService)
|
||||
public MembersMembershipProvider(IMembershipMemberService<IMember> memberService)
|
||||
: base(memberService)
|
||||
{
|
||||
LockPropertyTypeAlias = Constants.Conventions.Member.IsLockedOut;
|
||||
@@ -59,15 +59,15 @@ namespace Umbraco.Web.Security.Providers
|
||||
return entity.AsConcreteMembershipUser(Name);
|
||||
}
|
||||
|
||||
public string LockPropertyTypeAlias { get; protected set; }
|
||||
public string LastLockedOutPropertyTypeAlias { get; protected set; }
|
||||
public string FailedPasswordAttemptsPropertyTypeAlias { get; protected set; }
|
||||
public string ApprovedPropertyTypeAlias { get; protected set; }
|
||||
public string CommentPropertyTypeAlias { get; protected set; }
|
||||
public string LastLoginPropertyTypeAlias { get; protected set; }
|
||||
public string LastPasswordChangedPropertyTypeAlias { get; protected set; }
|
||||
public string PasswordRetrievalQuestionPropertyTypeAlias { get; protected set; }
|
||||
public string PasswordRetrievalAnswerPropertyTypeAlias { get; protected set; }
|
||||
public string LockPropertyTypeAlias { get; private set; }
|
||||
public string LastLockedOutPropertyTypeAlias { get; private set; }
|
||||
public string FailedPasswordAttemptsPropertyTypeAlias { get; private set; }
|
||||
public string ApprovedPropertyTypeAlias { get; private set; }
|
||||
public string CommentPropertyTypeAlias { get; private set; }
|
||||
public string LastLoginPropertyTypeAlias { get; private set; }
|
||||
public string LastPasswordChangedPropertyTypeAlias { get; private set; }
|
||||
public string PasswordRetrievalQuestionPropertyTypeAlias { get; private set; }
|
||||
public string PasswordRetrievalAnswerPropertyTypeAlias { get; private set; }
|
||||
|
||||
public override void Initialize(string name, NameValueCollection config)
|
||||
{
|
||||
@@ -86,48 +86,6 @@ namespace Umbraco.Web.Security.Providers
|
||||
throw new ProviderException("No default MemberType alias is specified in the web.config string. Please add a 'defaultMemberTypeAlias' to the add element in the provider declaration in web.config");
|
||||
}
|
||||
}
|
||||
|
||||
// test for approve status
|
||||
if (config["umbracoApprovePropertyTypeAlias"] != null)
|
||||
{
|
||||
ApprovedPropertyTypeAlias = config["umbracoApprovePropertyTypeAlias"];
|
||||
}
|
||||
// test for lock attempts
|
||||
if (config["umbracoLockPropertyTypeAlias"] != null)
|
||||
{
|
||||
LockPropertyTypeAlias = config["umbracoLockPropertyTypeAlias"];
|
||||
}
|
||||
if (config["umbracoLastLockedPropertyTypeAlias"] != null)
|
||||
{
|
||||
LastLockedOutPropertyTypeAlias = config["umbracoLastLockedPropertyTypeAlias"];
|
||||
}
|
||||
if (config["umbracoLastPasswordChangedPropertyTypeAlias"] != null)
|
||||
{
|
||||
LastPasswordChangedPropertyTypeAlias = config["umbracoLastPasswordChangedPropertyTypeAlias"];
|
||||
}
|
||||
if (config["umbracoFailedPasswordAttemptsPropertyTypeAlias"] != null)
|
||||
{
|
||||
FailedPasswordAttemptsPropertyTypeAlias = config["umbracoFailedPasswordAttemptsPropertyTypeAlias"];
|
||||
}
|
||||
// comment property
|
||||
if (config["umbracoCommentPropertyTypeAlias"] != null)
|
||||
{
|
||||
CommentPropertyTypeAlias = config["umbracoCommentPropertyTypeAlias"];
|
||||
}
|
||||
// last login date
|
||||
if (config["umbracoLastLoginPropertyTypeAlias"] != null)
|
||||
{
|
||||
LastLoginPropertyTypeAlias = config["umbracoLastLoginPropertyTypeAlias"];
|
||||
}
|
||||
// password retrieval
|
||||
if (config["umbracoPasswordRetrievalQuestionPropertyTypeAlias"] != null)
|
||||
{
|
||||
PasswordRetrievalQuestionPropertyTypeAlias = config["umbracoPasswordRetrievalQuestionPropertyTypeAlias"];
|
||||
}
|
||||
if (config["umbracoPasswordRetrievalAnswerPropertyTypeAlias"] != null)
|
||||
{
|
||||
PasswordRetrievalAnswerPropertyTypeAlias = config["umbracoPasswordRetrievalAnswerPropertyTypeAlias"];
|
||||
}
|
||||
}
|
||||
|
||||
public override string DefaultMemberTypeAlias
|
||||
@@ -135,4 +93,4 @@ namespace Umbraco.Web.Security.Providers
|
||||
get { return _defaultMemberTypeAlias; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user