Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-user
Helper
Data.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\User\Helper
;
7
14
class
Data
extends
\Magento\Framework\App\Helper\AbstractHelper
15
{
19
const
XML_PATH_ADMIN_RESET_PASSWORD_LINK_EXPIRATION_PERIOD
=
'admin/security/password_reset_link_expiration_period'
;
20
24
protected
$_config
;
25
29
protected
$mathRandom
;
30
36
public
function
__construct
(
37
\
Magento
\Framework\
App
\Helper\
Context
$context,
38
\
Magento
\Backend\
App
\ConfigInterface
$config
,
39
\
Magento
\Framework\Math\Random
$mathRandom
40
) {
41
$this->_config =
$config
;
42
$this->mathRandom =
$mathRandom
;
43
parent::__construct($context);
44
}
45
51
public
function
generateResetPasswordLinkToken
()
52
{
53
return
$this->mathRandom->getUniqueHash();
54
}
55
61
public
function
getResetPasswordLinkExpirationPeriod
()
62
{
63
return
(
int
)$this->_config->getValue(self::XML_PATH_ADMIN_RESET_PASSWORD_LINK_EXPIRATION_PERIOD);
64
}
65
}
Magento\User\Helper\Data\__construct
__construct(\Magento\Framework\App\Helper\Context $context, \Magento\Backend\App\ConfigInterface $config, \Magento\Framework\Math\Random $mathRandom)
Definition:
Data.php:36
Magento\Framework\App
Magento\User\Helper\Data
Definition:
Data.php:14
$config
$config
Definition:
fraud_order.php:17
Magento\User\Helper
Definition:
DataTest.php:6
Magento\User\Helper\Data\XML_PATH_ADMIN_RESET_PASSWORD_LINK_EXPIRATION_PERIOD
const XML_PATH_ADMIN_RESET_PASSWORD_LINK_EXPIRATION_PERIOD
Definition:
Data.php:19
Magento\User\Helper\Data\$_config
$_config
Definition:
Data.php:24
Magento\User\Helper\Data\$mathRandom
$mathRandom
Definition:
Data.php:29
Magento
Magento\User\Helper\Data\getResetPasswordLinkExpirationPeriod
getResetPasswordLinkExpirationPeriod()
Definition:
Data.php:61
Context
Definition:
ClassesForConstructorIntegrity.php:33
Magento\Framework\App\Helper\AbstractHelper
Definition:
AbstractHelper.php:13
Magento\User\Helper\Data\generateResetPasswordLinkToken
generateResetPasswordLinkToken()
Definition:
Data.php:51