Start New Discussion within our Software Development Community

hi every body

i build login page in visual web developer using vb with standard create user control which have username,password,email,security question and its answer
the question is how to customize create user control so i need only from it email and password without security question and security answer and add new fields like age,sex,job
and remove password condition were the user have to add non alphabetic character to his password.

thanx

i assume its ASP.NET

you can set these properties in the web.config:

<system.web>
...
 <membership defaultProvider="mgsSqlMembershipProvider">
      <providers>
        <clear />
        <add name="mySqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" />
      </providers>
    </membership>
   <profile>
      <properties>
        <add name="FriendlyName" />
        <add name="MomsName" />
      </properties>
    </profile>
</system.web>

For the user porofile you can just create a new class named ExtendedUser

Partial Public Class User
        Inherits UserBase

Property FriendlyName() As String
Property MomsName As String

End Class

I never tested that in plain ASP.NET only used it for WCF services.

This article has been dead for over six months. Start a new discussion instead.