Skip to content

Commit 42e3866

Browse files
committed
ACP2E-4044: [QUANS]Admin Password Policy Does Not Meet PCI DSS 4.0 Compliance (Minimum 12 Characters)
1 parent d7d1595 commit 42e3866

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/User/Model/UserValidationRules.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public function __construct(?ScopeConfigInterface $scopeConfig = null)
5353
*/
5454
private function getMinimumPasswordLength(): int
5555
{
56-
$configValue = $this->scopeConfig->getValue(self::XML_PATH_MINIMUM_PASSWORD_LENGTH);
56+
$configValue = $this->scopeConfig ?
57+
$this->scopeConfig->getValue(self::XML_PATH_MINIMUM_PASSWORD_LENGTH) : null;
58+
5759
return $configValue ? (int) $configValue : self::MIN_PASSWORD_LENGTH;
5860
}
5961

0 commit comments

Comments
 (0)