Skip to content

Commit

Permalink
Merge pull request #1 from stevro/stevro-patch-1
Browse files Browse the repository at this point in the history
Check session exists
  • Loading branch information
stevro committed Sep 29, 2020
2 parents b12f8a9 + 0eec9b1 commit 1555e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Storage/DatabaseStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function incrementCountAttempts(Request $request, ?string $username, Auth
$data = [
'exception' => $exception->getMessage(),
'clientIp' => $request->getClientIp(),
'sessionId' => $request->getSession()->getId(),
'sessionId' => $request->hasSession() ? $request->getSession()->getId() : null,
];

$model->setData($data);
Expand Down

0 comments on commit 1555e46

Please sign in to comment.