/** * Gets the NEW password from HTTP request parameter, decrypts it and writes * the decrypted value back into _POST request. * Note: Writing to _POST directly, as there doesn't seem to be another way, * because the parent function will re-read from request (i.e. _POST). * * @see the parent class function for parameters and return value */ protected function processPasswordChange($userLogin) { $password = Common::getRequestvar('password', false); CryptoForm::decryptAndWriteToPost('password', $password); $passwordBis = Common::getRequestvar('passwordBis', false); CryptoForm::decryptAndWriteToPost('passwordBis', $passwordBis); // call the original function on the decrypted values return parent::processPasswordChange($userLogin); }