-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
287 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> | ||
<file source-language="en" datatype="plaintext" original="EXT:fluid_styled_content/Configuration/Sets/FluidStyledContent/labels.xlf" date="2024-09-05T08:00:00Z" product-name="fluid_styled_content"> | ||
<header/> | ||
<body> | ||
<trans-unit id="label" resname="label"> | ||
<source>reCAPTCHA</source> | ||
</trans-unit> | ||
|
||
<trans-unit id="categories.recaptcha" resname="categories.recaptcha"> | ||
<source>reCAPTCHA</source> | ||
</trans-unit> | ||
|
||
<trans-unit id="settings.evoweb.recaptcha.apiServer" resname="settings.evoweb.recaptcha.apiServer"> | ||
<source>API-server address</source> | ||
</trans-unit> | ||
<trans-unit id="settings.description.evoweb.recaptcha.apiServer" resname="settings.description.evoweb.recaptcha.apiServer"> | ||
<source>API Url</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.verifyServer" resname="settings.evoweb.recaptcha.verifyServer"> | ||
<source>VERIFY-server address</source> | ||
</trans-unit> | ||
<trans-unit id="settings.description.evoweb.recaptcha.verifyServer" resname="settings.description.evoweb.recaptcha.verifyServer"> | ||
<source>Verify Url</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.publicKey" resname="settings.evoweb.recaptcha.publicKey"> | ||
<source>Public Key</source> | ||
</trans-unit> | ||
<trans-unit id="settings.description.evoweb.recaptcha.publicKey" resname="settings.description.evoweb.recaptcha.publicKey"> | ||
<source>Public key of your reCAPTCHA-account. Get your keys at https://www.google.com/recaptcha/admin</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.privateKey" resname="settings.evoweb.recaptcha.privateKey"> | ||
<source>Private Key</source> | ||
</trans-unit> | ||
<trans-unit id="settings.description.evoweb.recaptcha.privateKey" resname="settings.description.evoweb.recaptcha.privateKey"> | ||
<source>Private key of your reCAPTCHA-account</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.invisiblePublicKey" resname="settings.evoweb.recaptcha.invisiblePublicKey"> | ||
<source>Public key for invisible recaptcha</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.invisiblePrivateKey" resname="settings.evoweb.recaptcha.invisiblePrivateKey"> | ||
<source>Private key for invisible recaptcha</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.lang" resname="settings.evoweb.recaptcha.lang"> | ||
<source>Language</source> | ||
</trans-unit> | ||
<trans-unit id="settings.description.evoweb.recaptcha.lang" resname="settings.description.evoweb.recaptcha.lang"> | ||
<source>Language of frontend (autodetected if empty). Valid language codes can be found at https://developers.google.com/recaptcha/docs/language?hl=de</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.enforceCaptcha" resname="settings.evoweb.recaptcha.enforceCaptcha"> | ||
<source>Enforcing captcha even in development mode</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.theme" resname="settings.evoweb.recaptcha.theme"> | ||
<source>Theme</source> | ||
</trans-unit> | ||
<trans-unit id="settings.description.evoweb.recaptcha.theme" resname="settings.description.evoweb.recaptcha.theme"> | ||
<source>Theme of frontend can be light or dark</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.recaptcha.robotMode" resname="settings.evoweb.recaptcha.robotMode"> | ||
<source>Robot Mode</source> | ||
</trans-unit> | ||
<trans-unit id="settings.description.evoweb.recaptcha.robotMode" resname="settings.description.evoweb.recaptcha.robotMode"> | ||
<source>If you use a frontend testing tool, which cannot solve the recaptcha</source> | ||
</trans-unit> | ||
<trans-unit id="settings.evoweb.sf-register.captchaId" resname="settings.evoweb.sf-register.captchaId"> | ||
<source>Frontend user registration what captcha to use</source> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,53 @@ | ||
categories: | ||
recaptcha: ~ | ||
sf-register: | ||
label: 'Frontend user registration' | ||
|
||
settings: | ||
evoweb.recaptcha.apiServer: | ||
default: 'https://www.google.com/recaptcha/api.js' | ||
label: 'reCAPTCHA API-server address' | ||
type: string | ||
description: 'api url' | ||
evoweb.recaptcha.verifyServer: | ||
default: 'https://www.google.com/recaptcha/api/siteverify' | ||
label: 'reCAPTCHA VERIFY-server address' | ||
type: string | ||
description: 'verify url' | ||
evoweb.recaptcha.publicKey: | ||
default: '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI' | ||
label: 'reCAPTCHA public key: Public key of your reCAPTCHA-account' | ||
type: string | ||
category: recaptcha | ||
evoweb.recaptcha.privateKey: | ||
default: '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe' | ||
label: 'reCAPTCHA private key: Private key of your reCAPTCHA-account' | ||
type: string | ||
description: '' | ||
category: recaptcha | ||
evoweb.recaptcha.invisiblePublicKey: | ||
default: '' | ||
type: string | ||
category: recaptcha | ||
evoweb.recaptcha.invisiblePrivateKey: | ||
default: '' | ||
type: string | ||
category: recaptcha | ||
evoweb.recaptcha.apiServer: | ||
default: 'https://www.google.com/recaptcha/api.js' | ||
type: string | ||
category: recaptcha | ||
evoweb.recaptcha.verifyServer: | ||
default: 'https://www.google.com/recaptcha/api/siteverify' | ||
type: string | ||
category: recaptcha | ||
evoweb.recaptcha.lang: | ||
default: '?hl=' | ||
label: 'reCAPTCHA language: Language of reCAPTCHA frontend (autodetected if empty)' | ||
default: '' | ||
type: string | ||
description: '' | ||
evoweb.recaptcha.enforceCaptcha: | ||
default: 0 | ||
label: 'enforcing captcha even in development mode' | ||
type: bool | ||
description: '' | ||
category: recaptcha | ||
evoweb.recaptcha.theme: | ||
default: 'light' | ||
label: 'reCAPTCHA theme: Theme of reCAPTCHA frontend (light or dark)' | ||
type: string | ||
description: '' | ||
enum: | ||
light: 'light' | ||
dark: 'dark' | ||
category: recaptcha | ||
evoweb.recaptcha.robotMode: | ||
default: 0 | ||
label: 'reCAPTCHA robotMode: If you use a frontend testing tool, which cannot solve the recaptcha' | ||
type: bool | ||
description: '' | ||
evoweb.sf_register.captchaId: | ||
category: recaptcha | ||
evoweb.recaptcha.enforceCaptcha: | ||
default: 0 | ||
type: bool | ||
category: recaptcha | ||
evoweb.sf-register.captchaId: | ||
default: 'recaptcha' | ||
label: 'Frontend user registration what captcha to use' | ||
type: string | ||
description: '' | ||
category: sf-register |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
xmlns:r="http://typo3.org/ns/Evoweb/SfRegister/ViewHelpers" | ||
xmlns:sf="http://typo3.org/ns/Evoweb/SfRegister/ViewHelpers" | ||
xmlns:r="http://typo3.org/ns/Evoweb/Recaptcha/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
<f:asset.script identifier="recaptcha_form" src="EXT:recaptcha/Resources/Public/JavaScript/Frontend/form.js"/> | ||
<f:variable name="hasCapchaError"><f:form.validationResults | ||
for="user.{fieldName}">{validationResults.flattenedErrors -> f:count()}</f:form.validationResults></f:variable> | ||
<f:if condition="!{settings.hasOriginalRequest}||{hasCapchaError}"> | ||
<div class="col-md-6 mb-3 {fieldName} {options.cssClass}"> | ||
<f:form.hidden | ||
property="{fieldName}" | ||
id="{fieldName}" | ||
value="" | ||
data="{recaptcha-form-field: ''}" | ||
respectSubmittedDataValue="false" | ||
/> | ||
<div><r:form.captcha type="recaptcha" /></div> | ||
</div> | ||
</f:if> | ||
|
||
<r:form.recaptcha> | ||
<f:asset.script identifier="recaptcha_form" src="EXT:recaptcha/Resources/Public/JavaScript/Frontend/form.js"/> | ||
<f:asset.script identifier="recaptcha" async="true" src="{configuration.api_server}{f:if(condition: configuration.lang, then: '?hl={configuration.lang}')}"/> | ||
<f:variable name="hasCapchaError"><f:form.validationResults | ||
for="user.{fieldName}">{validationResults.flattenedErrors -> f:count()}</f:form.validationResults></f:variable> | ||
<f:if condition="!{settings.hasOriginalRequest}||{hasCapchaError}"> | ||
<div class="col-md-6 mb-3 {fieldName} {options.cssClass}"> | ||
<f:form.hidden | ||
property="{fieldName}" | ||
id="{fieldName}" | ||
value="" | ||
data="{recaptcha-form-field: ''}" | ||
respectSubmittedDataValue="false" | ||
/> | ||
<div><sf:form.captcha type="recaptcha" /></div> | ||
</div> | ||
</f:if> | ||
</r:form.recaptcha> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.