Hi I'm trying to migrate members using the Umbraco Memberservice.
My code:
var newMember = memberService.CreateMemberWithIdentity(member.UserName, member.Email, member.FullName, member.MemberTypeAlias);
memberService.SavePassword(newMember, member.Password);
memberService.Save(newMember);
The problem is that some of the passwords I'm transferring are unsafe like '123'. I still want to transfer them, but can't because of the following exception:
System.Web.Security.MembershipPasswordException: Change password canceled due to password validation failure.
at Umbraco.Core.Security.MembershipProviderBase.ChangePassword(String username, String oldPassword, String newPassword)
at Umbraco.Core.Services.MemberService.SavePassword(IMember member, String password)
Umbraco memberservice password validation
Hi I'm trying to migrate members using the Umbraco Memberservice.
My code:
The problem is that some of the passwords I'm transferring are unsafe like '123'. I still want to transfer them, but can't because of the following exception:
How do I disable or change password validation?
Have a look at your web.config file. Look for:
Here you can set minRequiredPasswordLength and minRequiredNonalphanumericCharacters.
Cheers, overlooked minRequiredPasswordLength was set to 4
How to set member password validation minimum character to 8 characters instead of 10.
is working on a reply...