kernel/classes/datatypes/ezuser/ezuser.php
public static function loginUser( $login, $password, $authenticationMatch = false )
    {
        $user = self::_loginUser( $login, $password, $authenticationMatch );

        if ( is_object( $user ) )
        {
            self::loginSucceeded( $user );
            return $user;
        }
        else
        {
            self::loginFailed( $user, $login );
            return false;
        }
    }
public static function loginUser( $login, $password, $authenticationMatch = false )
    {
        $user = self::_loginUser( $login, $password, $authenticationMatch );

        if ( is_object( $user ) )
        {
            self::loginSucceeded( $user );
            return $user;
        }
        else
        {
            self::loginFailed( $user, $login );
            return false;
        }
    }
public static function loginUser ( $ login , $ password , $ authenticationMatch = false ) { $ user = self :: _loginUser ( $ login , $ password , $ authenticationMatch ) ; if ( is_object ( $ user ) ) { self :: loginSucceeded ( $ user ) ; return $ user ; } else { self :: loginFailed ( $ user , $ login ) ; return false ; } }
Logs in the user if applied username and password is valid.

@param string $login
@param string $password
@param bool $authenticationMatch
@return mixed eZUser on success, bool false on failure
Logs in the user if applied username and password is valid .