_config = $config; $this->mathRandom = $mathRandom; parent::__construct($context); } /** * Generate unique token for reset password confirmation link * * @return string */ public function generateResetPasswordLinkToken() { return $this->mathRandom->getUniqueHash(); } /** * Retrieve customer reset password link expiration period in days * * @return int */ public function getResetPasswordLinkExpirationPeriod() { return (int)$this->_config->getValue(self::XML_PATH_ADMIN_RESET_PASSWORD_LINK_EXPIRATION_PERIOD); } }