tomazaz
  • Posts: 13
  • Joined: 07/10/2009
Hello,

Is it possible to modify yaf password validation to let user enter simple string passwords.
Now forum ask to use literals, numbers and symbols combination in password, I want to let user to use any password string they like.

Regards,
Tomas
Sponsor
herman_herman
  • Posts: 535
  • Joined: 19/05/2007
Yes
open your webconfig and add the following changes to membership section (in bold):

<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
<providers>
<clear/>
<add connectionStringName="yafnet" applicationName="YetAnotherForum" minRequiredPasswordLength="5" minRequiredNonAlphanumericCharacters="0" name="YafMembershipProvider" requiresUniqueEmail="true" useSalt="true" type="YAF.Providers.Membership.YafMembershipProvider"/>
</providers>
</membership>
tomazaz
  • Posts: 13
  • Joined: 07/10/2009
My config code is below but I still get error when I try to change password from old to new one "qwerty"

Password incorrect or New Password invalid.
New Password length minimum: 4.
Non-alphanumeric characters required: 1.


<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
<providers>
<clear/>
<add connectionStringName="yafnet" applicationName="YetAnotherForum"
minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0"
name="YafMembershipProvider" requiresUniqueEmail="true" useSalt="true" type="YAF.Providers.Membership.YafMembershipProvider"/>
</providers>
</membership>
logan
  • Posts: 309
  • Joined: 15/03/2008
Use a capital A. minRequiredNonAlphanumericCharacters="0"
test
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved