File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/Security/Model
dev/tests/integration/testsuite/Magento/Security/Model/Plugin Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ private function getIntervalBetweenConsecutiveProlongs()
347
347
return (float ) max (
348
348
1 ,
349
349
min (
350
- log ((float )$ this ->securityConfig ->getAdminSessionLifetime ()),
350
+ 4 * log ((float )$ this ->securityConfig ->getAdminSessionLifetime ()),
351
351
$ this ->maxIntervalBetweenConsecutiveProlongs
352
352
)
353
353
);
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ public function testProcessProlong()
124
124
\Magento \TestFramework \Bootstrap::ADMIN_PASSWORD
125
125
);
126
126
$ sessionId = $ this ->authSession ->getSessionId ();
127
- $ prolongsDiff = log ($ this ->securityConfig ->getAdminSessionLifetime ()) + 2 ; // X from comment above
127
+ $ prolongsDiff = 4 * log ($ this ->securityConfig ->getAdminSessionLifetime ()) + 2 ; // X from comment above
128
128
$ dateInPast = $ this ->dateTime ->formatDate ($ this ->authSession ->getUpdatedAt () - $ prolongsDiff );
129
129
$ this ->adminSessionsManager ->getCurrentSession ()
130
130
->setData (
You can’t perform that action at this time.
0 commit comments