Skip to content

Commit

Permalink
Merge pull request #14 from crosa7/fix-incorrect-id-in-where-clause
Browse files Browse the repository at this point in the history
Fix where clause when fetching user
  • Loading branch information
mychidarko committed May 20, 2023
2 parents f293438 + 022448e commit b9c3236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public static function user(array $hidden = [])
return null;
}

$user = static::$db->select($table)->where('id', static::id())->fetchAssoc();
$user = static::$db->select($table)->where(static::$settings['ID_KEY'], static::id())->fetchAssoc();

if (count($hidden) > 0) {
foreach ($hidden as $item) {
Expand Down

0 comments on commit b9c3236

Please sign in to comment.