} else { $encoderName =
$resultIdentity['encoder'
];
$plaintext =
$this->_credential;
$hash =
$resultIdentity[$this->_credentialColumn
];
$passwordValid =
Shopware()->
PasswordEncoder()->
isPasswordValid($plaintext,
$hash,
$encoderName);
if ($passwordValid) { $defaultEncoderName =
Shopware()->
PasswordEncoder()->
getDefaultPasswordEncoderName();
if ($encoderName !==
$defaultEncoderName) { $this->
updateHash($plaintext,
$defaultEncoderName);
} else { $this->
rehash($plaintext,
$hash,
$encoderName);
} } } if (!
$passwordValid) { $this->_authenticateResultInfo
['code'
] = Zend_Auth_Result::FAILURE_CREDENTIAL_INVALID;
$this->_authenticateResultInfo
['messages'
][] = 'Supplied credential is invalid.';
return $this->
_authenticateCreateAuthResult();
}