Click here to Skip to main content
16,016,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Membership.CreateUser(txtUsrId.Text, txtPwd.Text, txtUsrEMail.Text, "demo", "demo", true, out createStatus)
------------------------------------------------------------
In the above code it will accept the password with special-charectors only.
How can I customize this so that user can enter anything as password
Posted

1 solution

if there is no other way, one last solution is , Asp.Net providers are customizable, we can extend the providers (MemberShipProvider) and override the required methods and let the other methods call their base functionality. In your case you need to override CreateUser of MemberShipProvider, and have you insert the user into database, and have your own logic for passwords, you may have to consider overriding ChangePassword also. Don't forget to configure the new provider in web.config providers section.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900