X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ffilter%2Fvalidator%2Fclass_PasswordValidatorFilter.php;h=8944f35886976861c65ac6e5f6cadc19320d2cb8;hb=c59dccf46c5d0e3b7f2687370b2b15023b1ecdfe;hp=1d371b1e82d14e7e31485b09d54fa5ce04503f67;hpb=e2767d5148436d0c90ed66ed9290416353ae6e60;p=hub.git diff --git a/inc/classes/main/filter/validator/class_PasswordValidatorFilter.php b/inc/classes/main/filter/validator/class_PasswordValidatorFilter.php index 1d371b1e8..8944f3588 100644 --- a/inc/classes/main/filter/validator/class_PasswordValidatorFilter.php +++ b/inc/classes/main/filter/validator/class_PasswordValidatorFilter.php @@ -5,7 +5,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -31,12 +31,6 @@ class PasswordValidatorFilter extends BaseFilter implements Filterable { protected function __construct () { // Call parent constructor parent::__construct(__CLASS__); - - // Set part description - $this->setObjectDescription("A filter for Password validation"); - - // Create unique ID number - $this->generateUniqueId(); } /** @@ -81,13 +75,13 @@ class PasswordValidatorFilter extends BaseFilter implements Filterable { // Is the password empty? if (empty($password1)) { // Add a message to the response - $responseInstance->addFatalMessage('password1_empty'); + $responseInstance->addFatalMessage('pass1_empty'); } // END - if // Is the confirmation empty? if (empty($password2)) { // Add a message to the response - $responseInstance->addFatalMessage('password2_empty'); + $responseInstance->addFatalMessage('pass2_empty'); } // END - if // Abort here @@ -97,7 +91,7 @@ class PasswordValidatorFilter extends BaseFilter implements Filterable { $requestInstance->requestIsValid(false); // Add a message to the response - $responseInstance->addFatalMessage('passwords_mismatching'); + $responseInstance->addFatalMessage('pass_mismatch'); // Abort here return false;