Skip to content

Commit

Permalink
Fixes getUserByIdentity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew13 committed Mar 13, 2014
1 parent 060e6ef commit afcb5f0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Zizaco/Confide/ConfideEloquentRepository.php
Expand Up @@ -133,14 +133,16 @@ public function getUserByIdentity( $credentials, $identityColumns = array('email
}

if($hasWhere)
{
$user = $user->get();
}
{
$user = $user->get();

if(! empty($user)) {
return $user->first();
}
if(! empty($user))
{
return $user->first();
}

}

return null;
}

Expand Down

0 comments on commit afcb5f0

Please sign in to comment.