mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-04 00:44:41 +08:00
Added social sign in
This commit is contained in:
24
app/Repos/UserRepo.php
Normal file
24
app/Repos/UserRepo.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php namespace Oxbow\Repos;
|
||||
|
||||
|
||||
use Oxbow\User;
|
||||
|
||||
class UserRepo
|
||||
{
|
||||
|
||||
protected $user;
|
||||
|
||||
/**
|
||||
* UserRepo constructor.
|
||||
* @param $user
|
||||
*/
|
||||
public function __construct(User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
|
||||
public function getByEmail($email) {
|
||||
return $this->user->where('email', '=', $email)->first();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user