8

I need to change the password complexity requirements for authors to meet corporate standards of a password being:

  • Minium of 8 characters
  • Contain at least one numeral
  • Contain at least one symbol
10

You can set this in the web.config. In your membership section. You can set a password strength regular expression.

<add name="sql" type="System.Web.Security.SqlMembershipProvider" 
    connectionStringName="core" 
    applicationName="sitecore" 
    minRequiredPasswordLength="8" 
    minRequiredNonalphanumericCharacters="1" 
    requiresQuestionAndAnswer="false" 
    requiresUniqueEmail="false" 
    maxInvalidPasswordAttempts="5" 
    passwordStrengthRegularExpression="^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d][A-Za-z\d!@#$%^&*()_+]{7,19}$" />

I found this regex ^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d][A-Za-z\d!@#$%^&*()_+]{7,19}$ for your requirements: Regex Source

  • when I tried this I am getting this error: Error Code 0x8007000d Config Error Configuration file is not well-formed XML – Anjo Oct 6 '17 at 13:01
  • @Anjo please open a new question for further issues. – Richard Seal Oct 6 '17 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.