Bug fixes for Google ReCaptcha 2.0 update

This commit is contained in:
EmeraldArcher
2015-07-25 16:07:54 -06:00
parent 5420a038ba
commit b21f31980b
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
@{
var publicKey = (string)Model.PublicKey;
}
@if (!HasText(publicKey)) {
@if (HasText(publicKey)) {
<script src='https://www.google.com/recaptcha/api.js'></script>
<fieldset>

View File

@@ -5,7 +5,7 @@
var element = (ReCaptcha)Model.Element;
var publicKey = (string)Model.PublicKey;
}
@if (!String.IsNullOrWhiteSpace(publicKey)) {
@if (HasText(publicKey)) {
@tagBuilder.StartElement
<script src='https://www.google.com/recaptcha/api.js'></script>