mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Bug fixes for Google ReCaptcha 2.0 update
This commit is contained in:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user