Skip to content

Commit

Permalink
more fields marked user instead of user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallagher committed Feb 28, 2013
1 parent 2197dcc commit 23800dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GoalioForgotPasswordDoctrineORM/Mapper/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public function findByUser($userId)
{
$er = $this->em->getRepository($this->options->getPasswordEntityClass());

return $er->findOneBy(array('user' => $userId));
return $er->findOneBy(array('user_id' => $userId));
}

public function findByUserIdRequestKey($userId, $key)
{
$er = $this->em->getRepository($this->options->getPasswordEntityClass());
return $er->findOneBy(array('user' => $userId, 'requestKey' => $key));
return $er->findOneBy(array('user_id' => $userId, 'requestKey' => $key));
}

public function cleanExpiredForgotRequests($expiryTime=86400)
Expand Down

0 comments on commit 23800dd

Please sign in to comment.