Skip to content

Commit 26a3b62

Browse files
committed
fix: ensure find() checks DB connection before query
1 parent 23cdc71 commit 26a3b62

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Auth.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ public function fromOAuth(array $userData): bool
444444
*/
445445
public function find($id)
446446
{
447+
$this->checkDbConnection();
448+
447449
$userData = $this->db->select(Config::get('db.table'))->find($id);
448450

449451
if (!$userData) {

0 commit comments

Comments
 (0)