diff --git a/LICENSE b/LICENSE index 49180d8..16637cd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2012-2018 Scott Chacon and others +Copyright (c) terminal42 gmbh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -17,4 +17,4 @@ 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. \ No newline at end of file +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/contao/config/config.php b/contao/config/config.php index 26e3f09..a212327 100644 --- a/contao/config/config.php +++ b/contao/config/config.php @@ -2,14 +2,6 @@ declare(strict_types=1); -/* - * This file is part of terminal42/contao-password-validation. - * - * (c) terminal42 gmbh - * - * @license MIT - */ - use Terminal42\PasswordValidationBundle\Model\PasswordHistory; $GLOBALS['TL_MODELS']['tl_password_history'] = PasswordHistory::class; diff --git a/contao/dca/tl_member.php b/contao/dca/tl_member.php index 9bd531e..1ff2530 100644 --- a/contao/dca/tl_member.php +++ b/contao/dca/tl_member.php @@ -1,15 +1,5 @@ - * - * @license MIT - */ - $GLOBALS['TL_DCA']['tl_member']['subpalettes']['login'] .= ',pwChange'; $GLOBALS['TL_DCA']['tl_member']['fields']['password']['eval']['rgxp'] = 'terminal42_password_validation'; diff --git a/contao/dca/tl_page.php b/contao/dca/tl_page.php index 35813be..2cd4958 100644 --- a/contao/dca/tl_page.php +++ b/contao/dca/tl_page.php @@ -1,15 +1,5 @@ - * - * @license MIT - */ - use Contao\CoreBundle\DataContainer\PaletteManipulator; use Contao\CoreBundle\DataContainer\PaletteNotFoundException; diff --git a/contao/dca/tl_password_history.php b/contao/dca/tl_password_history.php index 65e036b..b45ff51 100644 --- a/contao/dca/tl_password_history.php +++ b/contao/dca/tl_password_history.php @@ -1,15 +1,5 @@ - * - * @license MIT - */ - $GLOBALS['TL_DCA']['tl_password_history'] = [ // Config 'config' => [ diff --git a/contao/dca/tl_user.php b/contao/dca/tl_user.php index 1006e1d..36fe12a 100644 --- a/contao/dca/tl_user.php +++ b/contao/dca/tl_user.php @@ -1,13 +1,3 @@ - * - * @license MIT - */ - $GLOBALS['TL_DCA']['tl_user']['fields']['password']['eval']['rgxp'] = 'terminal42_password_validation'; diff --git a/src/Validation/PasswordValidatorInterface.php b/src/Validation/PasswordValidatorInterface.php index 8bd0fd4..5df34e7 100644 --- a/src/Validation/PasswordValidatorInterface.php +++ b/src/Validation/PasswordValidatorInterface.php @@ -19,9 +19,9 @@ interface PasswordValidatorInterface /** * @param ValidationContext $context holds the password to verify, the user id and the like * - * @throws PasswordValidatorException to decline the password and add a error message to the password widget - * * @return bool true to accept the password, false to decline the password + * + * @throws PasswordValidatorException to decline the password and add a error message to the password widget */ public function validate(ValidationContext $context): bool; }