*
* @author Roland Haeder <webmaster@ship-simu.org>
* @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
*
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();
}
/**
// 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
$requestInstance->requestIsValid(false);
// Add a message to the response
- $responseInstance->addFatalMessage('passwords_mismatching');
+ $responseInstance->addFatalMessage('pass_mismatch');
// Abort here
return false;