File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -624,6 +624,7 @@ public virtual ActionResult ForgotPassword()
624624
625625 [ HttpPost ]
626626 [ ValidateAntiForgeryToken ]
627+ [ ValidateRecaptchaResponse ]
627628 public virtual async Task < ActionResult > ForgotPassword ( ForgotPasswordViewModel model )
628629 {
629630 // We don't want Login to have us as a return URL
Original file line number Diff line number Diff line change 3333 @Html.ShowValidationMessagesForEmpty()
3434 </div >
3535 <div class =" form-group" >
36- <input type =" submit" class =" btn btn-primary form-control" value =" Send" />
36+ <input id = " Submit " type =" submit" class =" btn btn-primary form-control" value =" Send" />
3737 </div >
3838 }
3939 </div >
4040 </div >
4141 </div >
42- </section >
42+ </section >
43+
44+ @section BottomScripts {
45+ @ViewHelpers.RecaptchaScripts(Config.Current.ReCaptchaPublicKey , " Submit" )
46+ }
You can’t perform that action at this time.
0 commit comments