src/Stevemo/Cpanel/User/Repo/UserRepository.php
public function findByLogin($login)
    {
        try
        {
            return $this->sentry->findUserByLogin($login);
        }
        catch (SentryUserNotFoundException $e)
        {
            throw new UserNotFoundException($e->getMessage());
        }
    }
public function findByLogin($login)
    {
        try
        {
            return $this->sentry->findUserByLogin($login);
        }
        catch (SentryUserNotFoundException $e)
        {
            throw new UserNotFoundException($e->getMessage());
        }
    }
public function findByLogin ( $ login ) { try { return $ this -> sentry -> findUserByLogin ( $ login ) ; } catch ( SentryUserNotFoundException $ e ) { throw new UserNotFoundException ( $ e -> getMessage ( ) ) ; } }
Find a given user by the login attribute

@author Steve Montambeault
@link   http://stevemo.ca

@param $login

@throws UserNotFoundException
@return \Cartalyst\Sentry\Users\UserInterface
Find a given user by the login attribute