Nannette Thacker ShiningStar.net

ASP.net Web Application Development

Sponsors

News

See all Blog Posts by Nannette.

Nannette Thacker, consultant and owner of Shining Star Services LLC, specializes in development of custom dynamic database driven web applications utilizing ASP.net technologies. Nannette has been developing ASP sites since 1997. Nannette has written numerous articles on web development techniques and tutorials.

Nannette is the owner and developer of ChristianSinglesDating.com.

 Subscribe in a reader





View Nannette  Thacker's profile on LinkedIn

Adding Properties to Our Custom MembershipProvider Class - Creating a Custom Membership Provider and Membership User utilizing a Data Set Table Adapter - Step 6

We now want to setup our properties for our custom SSSMembershipProvider class. In the below block of code, we will define variables to use in pulling the properties as setup within the web.config file.

#Region "Properties from web.config"
    ' Properties from web.config, default all to False
    Private m_EnablePasswordReset As Boolean = False
    Private m_EnablePasswordRetrieval As Boolean = False
    Private m_RequiresQuestionAndAnswer As Boolean = False
    Private m_RequiresUniqueEmail As Boolean = False
    Private m_ApplicationName As String = String.Empty
    Private m_PasswordStrengthRegularExpression As String = String.Empty
    Private m_MaxAllowedPasswordLength As Integer = 0
    Private m_MaxInvalidPasswordAttempts As Integer = 0
    Private m_MinRequiredNonAlphanumericCharacters As Integer = 0
    Private m_MinRequiredPasswordLength As Integer = 0
    Private m_PasswordAttemptWindow As Integer = 10
    Private m_PasswordFormat As System.Web.Security.MembershipPasswordFormat = MembershipPasswordFormat.Clear
#End Region

Read the complete article here... 

 

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)