MAPG-69 add new field to User
This commit is contained in:
1 parent
99c72d99be
commit
7ba11f34cc
3 files changed
+32
-4
No files matched your search
@@ -25,4 +25,12 @@ class UserRepository
|
||||
|
||||
return $this->pdm->selectFromDb($select, User::class);
|
||||
}
|
||||
|
||||
public function getByGoogleSub(string $sub): ?User
|
||||
{
|
||||
$select = new Select(\Container::$dbConnection);
|
||||
$select->where('google_sub', '=', $sub);
|
||||
|
||||
return $this->pdm->selectFromDb($select, User::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user