Skip to content

Commit 8c79753

Browse files
authored
Merge pull request #29 from terrybr/fix/find-check-db-connection
Ensure find() method checks DB connection before querying
2 parents 54b15fd + f6ba4ad commit 8c79753

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)