$sErrorMessages,
$sErrorFlag] =
$this->eventManager->
filter( 'Shopware_Modules_Admin_Login_FilterResult',
[$sErrorMessages,
$sErrorFlag],
['subject' =>
$this, 'email' => null, 'password' => null, 'error' =>
$sErrorMessages] );
return ['sErrorFlag' =>
$sErrorFlag, 'sErrorMessages' =>
$sErrorMessages];
} $addScopeSql = '';
if ($this->scopedRegistration == true
) { $addScopeSql =
$this->db->
quoteInto(' AND subshopID = ? ',
$this->subshopId
);
} // When working with a pre-hashed password, we need to limit the getUser query by password,
// as there might be multiple users with the same mail address (accountmode = 1).
$preHashedSql = '';
if ($isPreHashed) { $preHashedSql =
$this->db->
quoteInto(' AND password = ? ',
$password);
} if ($ignoreAccountMode) { $sql = '
SELECT id, customergroup, password, encoder, password_change_date
FROM s_user WHERE email = ? AND active=1
AND (lockeduntil < now() OR lockeduntil IS NULL) '