C# Class Mvc.Honeypot.HtmlHelpers

Afficher le fichier Open project: dejanstojanovic/MVC-Honeypot

Méthodes publiques

Méthode Description
GetHashedPropertyName ( string PropertyName ) : string

Calculates MD5 HASH

HoneyPotField ( this helper, string name, object value, string inputCss = null, InputType fieldType = InputType.Text, string honeypotCss = null, InputType honeypotType = InputType.Hidden ) : System.Web.Mvc.MvcHtmlString

Renders out field with honeypot security check enabled

Method Details

GetHashedPropertyName() public static méthode

Calculates MD5 HASH
public static GetHashedPropertyName ( string PropertyName ) : string
PropertyName string Name of property that needs to be hashed
Résultat string

HoneyPotField() public static méthode

Renders out field with honeypot security check enabled
public static HoneyPotField ( this helper, string name, object value, string inputCss = null, InputType fieldType = InputType.Text, string honeypotCss = null, InputType honeypotType = InputType.Hidden ) : System.Web.Mvc.MvcHtmlString
helper this HtmlHelper which will be extended
name string Name of field. Should match model field of string type
value object Value of the field
inputCss string
fieldType InputType
honeypotCss string
honeypotType InputType
Résultat System.Web.Mvc.MvcHtmlString