} $customerId =
Shopware()->
Modules()->
Admin()->
sGetUserByMail($email);
if (empty($customerId)) { return [];
} $hash = Random::
getAlphanumericString(32
);
$context =
[ 'sUrlReset' =>
$this->
Front()->
ensureRouter()->
assemble(['controller' => 'account', 'action' => 'resetPassword', 'hash' =>
$hash]),
'sUrl' =>
$this->
Front()->
ensureRouter()->
assemble(['controller' => 'account', 'action' => 'resetPassword'
]),
'sKey' =>
$hash,
];
$sql = 'SELECT
s_user.accountmode,
s_user.active,
s_user.affiliate,
s_user.birthday,
s_user.confirmationkey,
s_user.customergroup,
s_user.customernumber,
s_user.email,
s_user.failedlogins,
s_user.firstlogin,
s_user.lastlogin,
s_user.language,
s_user.internalcomment,
s_user.lockeduntil,
s_user.subshopID,
s_user.title,
s_user.salutation,
s_user.firstname,
s_user.lastname,
s_user.lastlogin,
s_user.newsletter
FROM s_user
WHERE id = ?';