20 private $_username = -1;
40 \
Magento\Customer\Model\Session $customerSession,
44 parent::__construct($context,
$data);
45 $this->_isScopePrivate =
false;
47 $this->_customerSession = $customerSession;
55 $this->pageConfig->getTitle()->set(
__(
'Customer Login'));
56 return parent::_prepareLayout();
66 return $this->_customerUrl->getLoginPostUrl();
76 return $this->_customerUrl->getForgotPasswordUrl();
86 if (-1 === $this->_username) {
87 $this->_username = $this->_customerSession->getUsername(
true);
89 return $this->_username;
99 return (
bool)!$this->_scopeConfig->getValue(
100 \
Magento\Customer\Model\Form::XML_PATH_ENABLE_AUTOCOMPLETE,
101 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE