Resetpassword.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Block\Account;
  7. use Magento\Customer\Model\AccountManagement;
  8. /**
  9. * Customer reset password form
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. class Resetpassword extends \Magento\Framework\View\Element\Template
  15. {
  16. /**
  17. * Check if autocomplete is disabled on storefront
  18. *
  19. * @return bool
  20. */
  21. public function isAutocompleteDisabled()
  22. {
  23. return (bool)!$this->_scopeConfig->getValue(
  24. \Magento\Customer\Model\Form::XML_PATH_ENABLE_AUTOCOMPLETE,
  25. \Magento\Store\Model\ScopeInterface::SCOPE_STORE
  26. );
  27. }
  28. /**
  29. * Get minimum password length
  30. *
  31. * @return string
  32. * @since 100.1.0
  33. */
  34. public function getMinimumPasswordLength()
  35. {
  36. return $this->_scopeConfig->getValue(AccountManagement::XML_PATH_MINIMUM_PASSWORD_LENGTH);
  37. }
  38. /**
  39. * Get minimum password length
  40. *
  41. * @return string
  42. * @since 100.1.0
  43. */
  44. public function getRequiredCharacterClassesNumber()
  45. {
  46. return $this->_scopeConfig->getValue(AccountManagement::XML_PATH_REQUIRED_CHARACTER_CLASSES_NUMBER);
  47. }
  48. }