Skip to content

Commit c35c00a

Browse files
committed
Use session setter
1 parent aa533fb commit c35c00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sprinkle-account/app/src/Authenticate/Authenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ protected function loginRememberedUser(): ?UserInterface
347347
if ($loginResult->isSuccess()) {
348348
// Update in session
349349
$key = strval($this->config->get('session.keys.current_user_id'));
350-
$this->session[$key] = intval($loginResult->getCredential());
350+
$this->session->set($key, intval($loginResult->getCredential()));
351351
// There is a chance that an attacker has stolen the login token,
352352
// so we store the fact that the user was logged in via RememberMe (instead of login form)
353353
$this->viaRemember = true;

0 commit comments

Comments
 (0)