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
Model
Backend
Config
ObserverConfig.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\User\Model\Backend\Config
;
8
12
class
ObserverConfig
13
{
19
protected
$backendConfig
;
20
24
public
function
__construct
(
25
\
Magento
\Backend\
App
\
ConfigInterface
$backendConfig
26
) {
27
$this->backendConfig =
$backendConfig
;
28
}
29
36
public
function
_isLatestPasswordExpired
($latestPassword)
37
{
38
if
(!isset($latestPassword[
'last_updated'
]) || $this->
getAdminPasswordLifetime
() == 0) {
39
return
false
;
40
}
41
42
return
(
int
)$latestPassword[
'last_updated'
] + $this->
getAdminPasswordLifetime
() <
time
();
43
}
44
49
public
function
getAdminLockThreshold
()
50
{
51
return
60 * (int)$this->backendConfig->getValue(
'admin/security/lockout_threshold'
);
52
}
53
59
public
function
isPasswordChangeForced
()
60
{
61
return
(
bool
)(int)$this->backendConfig->getValue(
'admin/security/password_is_forced'
);
62
}
63
69
public
function
getAdminPasswordLifetime
()
70
{
71
return
86400 * (int)$this->backendConfig->getValue(
'admin/security/password_lifetime'
);
72
}
73
79
public
function
getMaxFailures
()
80
{
81
return
(
int
)$this->backendConfig->getValue(
'admin/security/lockout_failures'
);
82
}
83
}
Magento\Framework\App
Magento\User\Model\Backend\Config\ObserverConfig\getAdminPasswordLifetime
getAdminPasswordLifetime()
Definition:
ObserverConfig.php:69
Magento\Backend\App\ConfigInterface
Definition:
ConfigInterface.php:15
Magento\Setup\Model\Cron\time
time()
Definition:
ReadinessCheckTest.php:207
Magento\User\Model\Backend\Config\ObserverConfig\_isLatestPasswordExpired
_isLatestPasswordExpired($latestPassword)
Definition:
ObserverConfig.php:36
Magento\User\Model\Backend\Config\ObserverConfig\isPasswordChangeForced
isPasswordChangeForced()
Definition:
ObserverConfig.php:59
Magento\User\Model\Backend\Config
Definition:
ObserverConfig.php:7
Magento\User\Model\Backend\Config\ObserverConfig\getAdminLockThreshold
getAdminLockThreshold()
Definition:
ObserverConfig.php:49
Magento
Magento\User\Model\Backend\Config\ObserverConfig\$backendConfig
$backendConfig
Definition:
ObserverConfig.php:19
Magento\User\Model\Backend\Config\ObserverConfig
Definition:
ObserverConfig.php:12
Magento\User\Model\Backend\Config\ObserverConfig\__construct
__construct(\Magento\Backend\App\ConfigInterface $backendConfig)
Definition:
ObserverConfig.php:24
Magento\User\Model\Backend\Config\ObserverConfig\getMaxFailures
getMaxFailures()
Definition:
ObserverConfig.php:79