Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Configure how passwords are stored by setting the passwordFormat attribute in the web configuration file

The following web configuration file configures the SqlMembershipProvider to store passwords in plain text. File: Web.Config <configuration>     <system.web>       <authentication mode="Forms" />       <membership defaultProvider="MyProvider">         <providers>           <add             name="MyProvider"             type="System.Web.Security.SqlMembershipProvider"             passwordFormat="Clear"             connectionStringName="LocalSqlServer"/>         </providers>       </membership>     </system.web> </configuration>