public HtmlHelper <ChangeProfileInfo> GetModelHelper(string partialName, IValidateHuman validateHuman = null) { _model = InitChangeProfileInfo(partialName); _settings.SetHuman(validateHuman); return(InitHelp()); }
public HtmlHelper <ResetPasswordInfo> GetModelHelper(string partialName, IValidateHuman validateHuman = null) { _model = InitResetPasswordInfo(partialName); _settings.SetHuman(validateHuman); return(InitHelp()); }
public void SetHuman(IValidateHuman validateHuman) { if (validateHuman != null) { this.UseValidateHuman = true; this.ValidateHumanClass = validateHuman.GetType().AssemblyQualifiedName; if (!String.IsNullOrEmpty(validateHuman.AltValidationFailText)) { this.ValidationFailText = validateHuman.AltValidationFailText; } } else { this.UseValidateHuman = false; this.ValidateHumanClass = String.Empty; this.ValidationFailText = String.Empty; } }
public HtmlHelper <ContactInfo> GetModelHelper(string partialName, IValidateHuman validateHuman) { _model = InitContactInfo(partialName); _settings.UseValidateHuman = true; _settings.ValidateHumanClass = validateHuman.GetType().AssemblyQualifiedName; if (!String.IsNullOrEmpty(validateHuman.AltValidationFailText)) { _settings.ValidationFailText = validateHuman.AltValidationFailText; } return(InitHelp()); }
public void SetHuman(IValidateHuman validateHuman) { if (validateHuman != null) { this.UseValidateHuman = true; this.ValidateHumanClass = validateHuman.GetType().AssemblyQualifiedName; if (!String.IsNullOrEmpty(validateHuman.AltValidationFailText)) { this.ValidationFailText = validateHuman.AltValidationFailText; } } else { this.UseValidateHuman = false; this.ValidateHumanClass = String.Empty; this.ValidationFailText = String.Empty; } }
public FormConfigBase(string partialName, IValidateHuman validateHuman) : base(partialName) { this.ValidateHuman = validateHuman; }
public FormConfigBase(string partialName, IValidateHuman validateHuman) : base(partialName) { this.ValidateHuman = validateHuman; }
public ForgotPasswordInfoConfig(string partialName, IValidateHuman validateHuman) : base(partialName, validateHuman) { }
public LoginInfoConfig(string partialName, IValidateHuman validateHuman) : base(partialName, validateHuman) { }
public ContactInfoConfig(string partialName, IValidateHuman validateHuman) : base(partialName, validateHuman) { InitStuff(); }
public ChangeProfileInfoConfig(string partialName, IValidateHuman validateHuman) : base(partialName, validateHuman) { }