3
我在我的項目中實現了一個BotDetect MVC CAPTCHA。我想像往常一樣驗證驗證碼文本框。我在我的項目中使用bvalidator進行驗證。我不知道如何實現驗證碼文本框的bvalidator。如何實現BotDetect MVC的bvalidator驗證碼文本框
這是我的看法
@using (Html.BeginForm("Index", "Login", FormMethod.Post, new { id = "signupform" }))
{
<h2>Sign Up</h2>
<hr class="colorgraph">
<div class="form-group">
<input type="text" name="NewUserFirst_Name" id="NewUserFirst_Name" class="form-control input-lg" placeholder="First Name" tabindex="1" data-bvalidator="required" data-bavalidator-msg="First Name">
</div>
<div class="form-group">
<input type="text" name="NewUserLast_Name" id="NewUserLast_Name" class="form-control input-lg" placeholder="Last Name" tabindex="2" data-bvalidator="required" data-bavalidator-msg="Last Name">
</div>
<div class="form-group">
<input type="text" name="Reg_Email" id="Reg_Email" class="form-control input-lg" placeholder="Email" tabindex="3" data-bvalidator="email,required" data-bvalidator-msg="Email">
</div>
<div class="form-group">
<input type="password" name="NewUser_Password" id="NewUser_Password" class="form-control input-lg" placeholder="Password" tabindex="4" data-bvalidator="minlength[6],required">
</div>
<div class="form-group">
<input type="password" name="password_confirmation" id="password_confirmation" class="form-control input-lg" placeholder="Confirm Password" tabindex="5" data-bvalidator="equalto[NewUser_Password],required" data-bvalidator-msg="Confirm Password">
</div>
<div class="form-group">
@{ MvcCaptcha sampleCaptcha = new MvcCaptcha("SampleCaptcha"); }
@Html.Captcha(sampleCaptcha)
</div>
<div class="form-group">
@Html.TextBox("CaptchaCode", null, new { @class = "form-control input-lg", placeholder = "Please enter above code" })
@Html.ValidationMessage("CaptchaCode")
</div>
<hr class="colorgraph">
<div class="row">
<input type="submit" class="btn btn-primary btn-lg btn-block" value="Register" tabindex="6">
</div>
}
我在瀏覽器頁面會
請幫我