From 89fbad447bd069d4ba8cdfdff6926669d6d6ca13 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Tue, 27 Aug 2013 15:48:18 +0200 Subject: [PATCH] Adding propertytype alias conventions for Member --- src/Umbraco.Core/Constants-Conventions.cs | 51 +++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/Umbraco.Core/Constants-Conventions.cs b/src/Umbraco.Core/Constants-Conventions.cs index 2d32cda9fc..df2e15284d 100644 --- a/src/Umbraco.Core/Constants-Conventions.cs +++ b/src/Umbraco.Core/Constants-Conventions.cs @@ -90,6 +90,57 @@ public const string Image = "Image"; } + /// + /// Constants for Umbraco Member property aliases. + /// + public static class Member + { + /// + /// Property alias for a Members Password Question + /// + public const string PasswordQuestion = "umbracoPasswordRetrievalQuestionPropertyTypeAlias"; + + /// + /// Property alias for Members Password Answer + /// + public const string PasswordAnswer = "umbracoPasswordRetrievalAnswerPropertyTypeAlias"; + + /// + /// Property alias for the Comments on a Member + /// + public const string Comments = "umbracoCommentPropertyTypeAlias"; + + /// + /// Property alias for the Approved boolean of a Member + /// + public const string IsApproved = "umbracoApprovePropertyTypeAlias"; + + /// + /// Property alias for the Locked out boolean of a Member + /// + public const string IsLockedOut = "umbracoLockPropertyTypeAlias"; + + /// + /// Property alias for the last date the Member logged in + /// + public const string LastLoginDate = "umbracoLastLoginPropertyTypeAlias"; + + /// + /// Property alias for the last date a Member changed its password + /// + public const string LastPasswordChangeDate = "umbracoMemberLastPasswordChange"; + + /// + /// Property alias for the last date a Member was locked out + /// + public const string LastLockoutDate = "umbracoMemberLastLockout"; + + /// + /// Property alias for the number of failed login attemps + /// + public const string FailedPasswordAttempts = "umbracoFailedPasswordAttemptsPropertyTypeAlias"; + } + /// /// Constants for Umbraco URLs/Querystrings. ///