Merge pull request #5573 from emeraldarcher/issue/5572

Fixes #5572 - Bug fixes for Google ReCaptcha 2.0 update
This commit is contained in:
Sébastien Ros
2015-07-30 12:41:06 -07:00
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>