dejanstojanovic / MVC-Honeypot

Honeypot implementation in ASP.NET MVC
Other
12 stars 7 forks source link

Allow attributes to be added to html #7

Open travispessetto opened 4 years ago

travispessetto commented 4 years ago

This pull request makes it so you can use HTML attributes instead of just relying on class. This makes it so things like a placeholder can be added for example:

@Html.HoneyPotField("Email", Model.Email, new { @class = "form-control", placeholder="Please Enter Email" }, HtmlHelpers.InputType.Text, "masked", HtmlHelpers.InputType.Email)

The previous version can still be used as well:

@Html.HoneyPotField("Email", Model.Email, "form-control", HtmlHelpers.InputType.Text, "masked", HtmlHelpers.InputType.Email)