YAFLogo

gaopeng
  • gaopeng
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-21T18:38:24Z
Hi,

I want to remove complex and "!"/"?" password requirement when user register, how can I do?

Also, how to disable email and security question/answer?

Thanks in advance

Gao Peng


sorry for my English.
Sponsor
mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
2009-05-22T03:23:18Z
The latest from the SVN repository has lowered the password complexity requirements. So get the latest from there and then tweak your membership settings in the web.config.
UserPostedImage 

www.bunkerhollow.com  | www.careercomputing.com 

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )

Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
2009-05-22T03:35:33Z
http://forum.yetanotherforum.net/yaf_postst8427_Nonalphanumeric-in-webconfig-not-working.aspx 


UserPostedImage 

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

gaopeng
  • gaopeng
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2009-05-26T22:01:01Z
Thanks both of you, sorry for my late feedback.

OK, I choose Mek's advice, it works, here is my code in web.config:

<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
	<providers>
	       <clear/>
	       <add connectionStringName="yafnet" applicationName="YetAnotherForum" 
name="YafMembershipProvider" passwordAttemptWindow="10" enablePasswordRetrieval="true" 
enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" minRequiredPasswordLength="1" 
minRequiredNonAlphanumericCharacters="0" 
type="YAF.Providers.Membership.YafMembershipProvider"/>
	</providers>
</membership>

Now, there is no complexity and mark required, no security question/answer, but I don't know how to set no requirement for email(requiresUniqueEmail="false" don't work).

I want if I leave email blank when register, it pass(now it says 'you must fill email')


sorry for my English.