Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Custom MembershipProvider and OnValidatingPassword

$
0
0

Hi all,

I have developed a custom MembershipProvider. Except for validating the password strength, it works.

I call the OnValidatingPassword virtual method as shown in the ODBC sample:

ValidatePasswordEventArgs args =
        new ValidatePasswordEventArgs(username, newPassword,true);

OnValidatingPassword(args);

The values for the relevant are:
Minimum password length: 7
Minimum non-alphanumeric characters: 1
Regular expression: (null)

However, entering "myname" on the ChangePassword control does not cause args.Cancel to be set to true, even though the rules are violated.

So, I am wondering if the ODBC sample is incomplete and if I need to implement OnValidatingPassword myself? (The ODBC sample does not override the method)

Thanks for any help,

SA.


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>