Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Jun 10, 2024
1 parent 630d578 commit f562ad3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Core/Middleware/StartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function handleRequestWhileBlocking(IncomingRequest $request, $session

$lockFor = $this->manager->defaultRouteBlockLockSeconds();

$lock = Cache::store($this->manager->blockDriver())
$lock = Cache::store("installation")
->lock('session:'.$session->getId(), $lockFor)
->betweenBlockedAttemptsSleepFor(50);

Expand Down
2 changes: 1 addition & 1 deletion app/Domain/Auth/Services/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function setUsersession(mixed $user, bool $isLdap = false)
"twoFASecret" => $user['twoFASecret'] ?? '',
"isLdap" => $isLdap,
"createdOn" => dtHelper()->parseDbDateTime($user['createdOn']) ?? dtHelper()->userNow(),
"modified" => dtHelper()->parseDbDateTime($user['modified']) ?? dtHelper()->userNow()
"modified" => !empty($user['modified']) ? dtHelper()->parseDbDateTime($user['modified']) : dtHelper()->userNow()
);

$currentUser = self::dispatch_filter('user_session_vars', $currentUser);
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/Page/Acceptance/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function login($username, $password)
$this->I->waitForElementVisible('.stickyHeader', 120);
$this->I->see('Hi John');

$this->saveSessionSnapshot('sid');
$this->saveSessionSnapshot('ltid');
}

protected function loadSessionShapshot(string $name): bool
Expand Down

0 comments on commit f562ad3

Please sign in to comment.