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 @@ -328,7 +328,7 @@ private function getIntervalBetweenConsecutiveProlongs()
328
328
return (float ) max (
329
329
1 ,
330
330
min (
331
- log ((float )$ this ->securityConfig ->getAdminSessionLifetime ()),
331
+ 4 * log ((float )$ this ->securityConfig ->getAdminSessionLifetime ()),
332
332
$ this ->maxIntervalBetweenConsecutiveProlongs
333
333
)
334
334
);
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public function testProcessProlong()
132
132
\Magento \TestFramework \Bootstrap::ADMIN_PASSWORD
133
133
);
134
134
$ sessionId = $ this ->authSession ->getSessionId ();
135
- $ prolongsDiff = log ($ this ->securityConfig ->getAdminSessionLifetime ()) + 2 ; // X from comment above
135
+ $ prolongsDiff = 4 * log ($ this ->securityConfig ->getAdminSessionLifetime ()) + 2 ; // X from comment above
136
136
$ dateInPast = $ this ->dateTime ->formatDate ($ this ->authSession ->getUpdatedAt () - $ prolongsDiff );
137
137
$ this ->adminSessionsManager ->getCurrentSession ()
138
138
->setData (
You can’t perform that action at this time.
0 commit comments