Last active
June 11, 2018 06:50
-
-
Save getkub/5d8ccbf9faa6cf052e1e7c98b4157d36 to your computer and use it in GitHub Desktop.
ASP NET web.config connection string and membership provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.web> | |
<compilation debug="true" /> | |
<membership> | |
<providers> | |
<clear /> | |
<add name="AspNetSqlMembershipProvider" | |
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | |
connectionStringName="conString" | |
enablePasswordRetrieval="false" | |
enablePasswordReset="true" | |
requiresQuestionAndAnswer="true" | |
applicationName="/" | |
requiresUniqueEmail="true" | |
passwordFormat="Hashed" | |
maxInvalidPasswordAttempts="5" | |
minRequiredPasswordLength="5" | |
minRequiredNonalphanumericCharacters="0" | |
passwordAttemptWindow="10" | |
passwordStrengthRegularExpression=""/> | |
</providers> | |
</membership> | |
<authentication mode="Forms"/> | |
</system.web> | |
<connectionStrings> | |
<add name ="conString" | |
connectionString ="Data Source=<MYDB_HOSTNAME>; Initial Catalog=WebsiteDB; Integrated Security = True;" | |
providerName="System.Data.SqlClient"/> | |
</connectionStrings> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment