mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Bug fixes for Google ReCaptcha 2.0 update
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
@{
|
@{
|
||||||
var publicKey = (string)Model.PublicKey;
|
var publicKey = (string)Model.PublicKey;
|
||||||
}
|
}
|
||||||
@if (!HasText(publicKey)) {
|
@if (HasText(publicKey)) {
|
||||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
var element = (ReCaptcha)Model.Element;
|
var element = (ReCaptcha)Model.Element;
|
||||||
var publicKey = (string)Model.PublicKey;
|
var publicKey = (string)Model.PublicKey;
|
||||||
}
|
}
|
||||||
@if (!String.IsNullOrWhiteSpace(publicKey)) {
|
@if (HasText(publicKey)) {
|
||||||
@tagBuilder.StartElement
|
@tagBuilder.StartElement
|
||||||
<script src='https://www.google.com/recaptcha/api.js'></script>
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user