File tree Expand file tree Collapse file tree 6 files changed +22
-10
lines changed
dev/tests/integration/testsuite/Magento/Backend/Model/Auth
lib/internal/Cm/Cache/Backend Expand file tree Collapse file tree 6 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
54
54
if ($ object instanceof \Magento \Framework \DataObject \IdentityInterface) {
55
55
$ tags = $ object ->getIdentities ();
56
56
if (!empty ($ tags )) {
57
- $ this ->getCache ()->clean (\Zend_Cache::CLEANING_MODE_ALL , array_unique ($ tags ));
57
+ $ this ->getCache ()->clean (\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG , array_unique ($ tags ));
58
58
}
59
59
}
60
60
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function testExecute($cacheState)
74
74
75
75
$ this ->fullPageCacheMock ->expects ($ this ->once ())
76
76
->method ('clean ' )
77
- ->with (\Zend_Cache::CLEANING_MODE_ALL , $ this ->equalTo ($ expectedTags ));
77
+ ->with (\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG , $ this ->equalTo ($ expectedTags ));
78
78
}
79
79
80
80
$ this ->_model ->execute ($ observerObject );
Original file line number Diff line number Diff line change 22
22
<label >Max Number of Password Reset Requests</label >
23
23
<comment >Limit the number of password reset request per hour. Use 0 to disable.</comment >
24
24
<validate >required-entry validate-zero-or-greater</validate >
25
+ <depends >
26
+ <field id =" password_reset_protection_type" separator =" ," negative =" 1" >0</field >
27
+ </depends >
25
28
</field >
26
29
<field id =" min_time_between_password_reset_requests" translate =" label comment" type =" text" sortOrder =" 8" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
27
30
<label >Min Time Between Password Reset Requests</label >
28
31
<comment >Delay in minutes between password reset requests. Use 0 to disable.</comment >
29
32
<validate >required-entry validate-zero-or-greater</validate >
33
+ <depends >
34
+ <field id =" password_reset_protection_type" separator =" ," negative =" 1" >0</field >
35
+ </depends >
30
36
</field >
31
37
</group >
32
38
</section >
40
46
<label >Max Number of Password Reset Requests</label >
41
47
<comment >Limit the number of password reset request per hour. Use 0 to disable.</comment >
42
48
<validate >required-entry validate-zero-or-greater</validate >
49
+ <depends >
50
+ <field id =" password_reset_protection_type" separator =" ," negative =" 1" >0</field >
51
+ </depends >
43
52
</field >
44
53
<field id =" min_time_between_password_reset_requests" translate =" label comment" type =" text" sortOrder =" 7" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
45
54
<label >Min Time Between Password Reset Requests</label >
46
55
<comment >Delay in minutes between password reset requests. Use 0 to disable.</comment >
47
56
<validate >required-entry validate-zero-or-greater</validate >
57
+ <depends >
58
+ <field id =" password_reset_protection_type" separator =" ," negative =" 1" >0</field >
59
+ </depends >
48
60
</field >
49
61
</group >
50
62
</section >
Original file line number Diff line number Diff line change 19
19
<field id =" lockout_failures" translate =" label comment" sortOrder =" 100" showInDefault =" 1" >
20
20
<label >Maximum Login Failures to Lockout Account</label >
21
21
<comment >We will disable this feature if the value is empty.</comment >
22
+ <validate >validate-zero-or-greater validate-digits</validate >
22
23
</field >
23
24
<field id =" lockout_threshold" translate =" label" sortOrder =" 110" showInDefault =" 1" >
24
25
<label >Lockout Time (minutes)</label >
26
+ <validate >validate-zero-or-greater validate-digits</validate >
25
27
</field >
26
28
<field id =" password_lifetime" translate =" label comment" sortOrder =" 120" showInDefault =" 1" >
27
29
<label >Password Lifetime (days)</label >
28
30
<comment >We will disable this feature if the value is empty. </comment >
31
+ <validate >validate-zero-or-greater validate-digits</validate >
29
32
</field >
30
33
<field id =" password_is_forced" translate =" label" sortOrder =" 130" type =" select" showInDefault =" 1" >
31
34
<label >Password Change</label >
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ protected function setUp()
38
38
39
39
protected function tearDown ()
40
40
{
41
+ $ this ->auth = null ;
41
42
$ this ->objectManager ->get (\Magento \Framework \Config \ScopeInterface::class)->setCurrentScope (null );
42
- $ this ->auth ->logout ();
43
43
}
44
44
45
45
/**
@@ -58,6 +58,6 @@ public function testIsLoggedIn($loggedIn)
58
58
59
59
public function loginDataProvider ()
60
60
{
61
- return [[true ], [false ]];
61
+ return [[false ], [true ]];
62
62
}
63
63
}
Original file line number Diff line number Diff line change 34
34
*
35
35
* @copyright Copyright (c) 2013 Colin Mollenhour (http://colin.mollenhour.com)
36
36
* @license http://framework.zend.com/license/new-bsd New BSD License
37
+ *
38
+ * Modified by Magento, Modifications Copyright © 2016 Magento.
37
39
*/
38
40
class Cm_Cache_Backend_File extends Zend_Cache_Backend_File
39
41
{
@@ -59,11 +61,6 @@ class Cm_Cache_Backend_File extends Zend_Cache_Backend_File
59
61
*/
60
62
public function __construct (array $ options = array ())
61
63
{
62
- // Magento-friendly cache dir
63
- if (empty ($ options ['cache_dir ' ]) && class_exists ('Mage ' , false )) {
64
- $ options ['cache_dir ' ] = Mage::getBaseDir ('cache ' );
65
- }
66
-
67
64
// Backwards compatibility ZF 1.11 and ZF 1.12
68
65
if (isset ($ options ['hashed_directory_umask ' ])) {
69
66
$ options ['directory_mode ' ] = $ options ['hashed_directory_umask ' ];
@@ -716,4 +713,4 @@ public function ___expire($id)
716
713
$ this ->touch ($ id , 1 - $ metadata ['expire ' ]);
717
714
}
718
715
719
- }
716
+ }
You can’t perform that action at this time.
0 commit comments