public function generatePasswordResetToken($user, $expiryTimestamp = null)
{
/*
* Piwik does not store the generated password reset token.
* This avoids a database schema change and SQL queries to store, retrieve, and purge (expired) tokens.
*/
if (!$expiryTimestamp) {
$expiryTimestamp = $this->getDefaultExpiryTime();
}
$expiry = strftime('%Y%m%d%H', $expiryTimestamp);
$token = $this->generateSecureHash($expiry . $user['login'] . $user['email'], $user['password']);
return $token;
}