Hi, i recently changed the password complexity as follows :
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
This works fine.
However , if a user forgets there password and needs a new one, they answer a security question, and then a new password is sent to them via email.
Te password that is sent is a complex one : eg :
Password: #!FO5:U:!;VQ*c
I wondered if there was any way to change the web config file so that the new password that is emailed to the user isnt complex. Such that it just contains letters and has a lengh of 5 characters .
Any guidance would be appreciated thanks
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
This works fine.
However , if a user forgets there password and needs a new one, they answer a security question, and then a new password is sent to them via email.
Te password that is sent is a complex one : eg :
Password: #!FO5:U:!;VQ*c
I wondered if there was any way to change the web config file so that the new password that is emailed to the user isnt complex. Such that it just contains letters and has a lengh of 5 characters .
Any guidance would be appreciated thanks