PasswordStrengthRegularExpression doesn't work
Hi, Sitefinity Team and everyone!
I have an issue with MemberShip provider. When user forget password, Sitefinity should reset ald password and send it to user via email.
I want Sitefinity create passwords only in alphanumeric format (min 8 symbols length).
I've found tool (www.gskinner.com/.../) for creating regular expressions. So, alphanumeric expression is - ^[0-9A-Z]8,$
I write this expression to passwordStrengthRegularExpression and restart Sitefinity. BUT system generates passwords like DfF*G5.
Please, help me to resolve this problem ASAP.
Hi Team,
we are using Sitefinity 7.1 and I am facing similar issue when I try to set PasswordStrengthRegularExpression as shown in this article, the blog.falafel.com/.../ . the expression set is not considered when reset password inside user profile is clicked nor when a new user is created.
Any help on this is appreciated.
Hi Hemnath,
With current implementation auto generated password cannot be modified. What you can try to do is to implement a custom membership provided that inherits from our OpenAccessMembershipProvider. Then you have to override ResetPassword method. There you should plug your custom reset password logic that will generate passwords in desired format. You can find how to change user password using Sitefinity API from the following documentation article:
Changing password
This custom provider should be registered in Administration -> Settings -> Advanced -> Security -> Membership Providers. Keep in mind that this is just an idea where you can plug your custom logic and you will need to implement this in the most suitable for your way.
Regards,
Svetoslav Manchev
Telerik