Skip to content

Commit 3e65c27

Browse files
committed
refactor: use parameter
1 parent 8875307 commit 3e65c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Authentication/Authenticators/Session.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,15 @@ private function checkRememberMeToken(string $remember)
315315
private function startLogin(User $user): void
316316
{
317317
// Update the user's last used date on their password identity.
318-
$this->user->touchIdentity($this->user->getEmailIdentity());
318+
$user->touchIdentity($user->getEmailIdentity());
319319

320320
// Regenerate the session ID to help protect against session fixation
321321
if (ENVIRONMENT !== 'testing') {
322322
session()->regenerate();
323323
}
324324

325325
// Let the session know we're logged in
326-
session()->set(setting('Auth.sessionConfig')['field'], $this->user->getAuthId());
326+
session()->set(setting('Auth.sessionConfig')['field'], $user->getAuthId());
327327

328328
/** @var Response $response */
329329
$response = service('response');

0 commit comments

Comments
 (0)