Skip to content

Commit d11bb0d

Browse files
committed
fix: respect id.key config on find()
1 parent 8a16363 commit d11bb0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public function find($id)
446446
{
447447
$this->checkDbConnection();
448448

449-
$userData = $this->db->select(Config::get('db.table'))->find($id);
449+
$userData = $this->db->select(Config::get('db.table'))->where(Config::get('id.key'), $id)->first();
450450

451451
if (!$userData) {
452452
return null;

0 commit comments

Comments
 (0)