Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
using System.Web.Security;
using System.Collections.Specialized;
public class ExtraPasswordValidationProvider : SqlMembershipProvider
{
public override void Initialize(string name, NameValueCollection config)
{
base.Initialize(name, config);
this.ValidatingPassword
+= new MembershipValidatePasswordEventHandler(ExtraValidation);
}
private void ExtraValidation(object sender, ValidatePasswordEventArgs e)
{
if( /*extra criteria fails*/ )
e.Cancel = true;
}
}