File: Web.Config
<configuration>
<system.web>
<authentication mode="Forms" />
<membership defaultProvider="MyMembershipProvider">
<providers>
<add
name="MyMembershipProvider"
type="MyNamespace.XmlMembershipProvider"
dataFile="~/App_Data/Membership.xml"
requiresQuestionAndAnswer="false"
enablePasswordRetrieval="true"
enablePasswordReset="true"
passwordFormat="Clear" />
</providers>
</membership>
</system.web>
</configuration>
A sample of the Membership.xml file.
File: App_Data\Membership.xml
<credentials>
<user name="Tom" password="secret" email="tom@somewhere.com" />
<user name="Jack" password="secret" email="jack@somewhere.com" />
</credentials>
|