for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OAuth\Repository;
use Del\Repository\UserRepository as UserRepo;
use OAuth2\Storage\UserCredentialsInterface;
class UserRepository extends UserRepo implements UserCredentialsInterface
{
/**
* @param $email
* @param $password
* @return mixed
*/
public function checkUserCredentials($email, $password)
$user = $this->findOneBy(['email' => $email]);
if ($user) {
return $user->verifyPassword($password);
}
return false;
public function getUserDetails($email)
$user = $user->toArray();
return $user;