-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated license, changed namespace to oposs, title fix
- Loading branch information
Showing
11 changed files
with
78 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.gitignore export-ignore | ||
/img export-ignore |
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 @@ | ||
.idea |
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,3 @@ | ||
### [0.1.0] 2022-02-25 | ||
|
||
* Initial Release |
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,21 +1,27 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 OETIKER+PARTNER AG | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
Redistributions in binary form must reproduce the above copyright notice, this | ||
list of conditions and the following disclaimer in the documentation and/or | ||
other materials provided with the distribution. | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
Neither the name of Ed Chipman nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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,5 +1,5 @@ | ||
{ | ||
"name": "oetiker/silverstripe-hcaptcha", | ||
"name": "oposs/silverstripe-hcaptcha", | ||
"type": "silverstripe-vendormodule", | ||
"description": "Protect your forms with hCaptcha", | ||
"homepage": "https://oetiker.ch", | ||
|
@@ -10,21 +10,24 @@ | |
"captcha", | ||
"hcaptcha" | ||
], | ||
"support": { | ||
"issues": "https://github.com/oposs/silverstripe-hcaptcha/issues" | ||
}, | ||
"authors": [ | ||
{"name": "Tobias Bossert", "email": "[email protected]"} | ||
], | ||
"require": { | ||
"silverstripe/cms": "^4", | ||
"silverstripe/framework": "^4", | ||
"silverstripe/vendor-plugin": "*", | ||
"silverstripe/spamprotection": "~3.0", | ||
"php": "^7.4 || ^8.0", | ||
"ext-curl": "*", | ||
"ext-json": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Oetiker\\hCaptcha\\": "src/", | ||
"Oetiker\\hCaptcha\\Forms\\" : "src/Froms" | ||
"Oposs\\hCaptcha\\": "src/", | ||
"Oposs\\hCaptcha\\Forms\\" : "src/Froms" | ||
} | ||
}, | ||
"version": "0.0.1" | ||
} | ||
} |
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,5 +1,6 @@ | ||
en: | ||
Oetiker\hCaptcha\Forms\hCaptchaField: | ||
EMPTY: "Bitte captcha beantworten. Wenn nicht sichtbar, Javascript von js.hcaptcha.com erlauben" | ||
NOSCRIPT: "Javascript muss aktiv sein um dieses Formular absenden zu kommen" | ||
VALIDATE_ERROR: "Captcha konnte nicht verfiziert werden" | ||
NOSCRIPT: "Javascript muss aktiv sein um dieses Formular absenden zu können" | ||
VALIDATE_ERROR: "Captcha konnte nicht verfiziert werden" | ||
DEFAULT_TITLE: "Spamschutz" |
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,26 +1,27 @@ | ||
<?php | ||
|
||
namespace Oetiker\hCaptcha; | ||
namespace Oposs\hCaptcha; | ||
|
||
|
||
use Oetiker\hCaptcha\Forms\hCaptchaField; | ||
use Oposs\hCaptcha\Forms\hCaptchaField; | ||
|
||
class hCaptchaProtector implements \SilverStripe\SpamProtection\SpamProtector | ||
{ | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getFormField($name = 'hCaptcha', $title = 'hCaptcha', $value = null) | ||
public function getFormField($name = 'hCaptcha', $title = 'Captcha', $value = null) | ||
{ | ||
return new hCaptchaField($name, $title, $value); | ||
return new hCaptchaField($name, $title); | ||
|
||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function setFieldMapping($fieldMapping) | ||
{ | ||
// TODO: Implement setFieldMapping() method. | ||
//Not used | ||
} | ||
} |
File renamed without changes.