void EmitValidatingPassword (string username, string password, bool isNewUser)
{
ValidatePasswordEventArgs args = new ValidatePasswordEventArgs (username, password, isNewUser);
OnValidatingPassword (args);
/* if we're canceled.. */
if (args.Cancel) {
if (args.FailureInformation == null)
throw new ProviderException ("Password validation canceled");
else
throw args.FailureInformation;
}
}