mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-05 18:41:02 +00:00
remove old implementation for login/register/recover
This commit is contained in:
parent
772d8c4b93
commit
1210dae105
40 changed files with 93 additions and 773 deletions
26
src/Wallabag/UserBundle/Repository/UserRepository.php
Normal file
26
src/Wallabag/UserBundle/Repository/UserRepository.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace Wallabag\UserBundle\Repository;
|
||||
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
|
||||
class UserRepository extends EntityRepository
|
||||
{
|
||||
/**
|
||||
* Find a user by its username and rss roken.
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $rssToken
|
||||
*
|
||||
* @return User|null
|
||||
*/
|
||||
public function findOneByUsernameAndRsstoken($username, $rssToken)
|
||||
{
|
||||
return $this->createQueryBuilder('u')
|
||||
->leftJoin('u.config', 'c')
|
||||
->where('c.rssToken = :rss_token')->setParameter('rss_token', $rssToken)
|
||||
->andWhere('u.username = :username')->setParameter('username', $username)
|
||||
->getQuery()
|
||||
->getOneOrNullResult();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue