public static function loginUser( $login, $password, $authenticationMatch = false )
    {
        $user = self::_loginUser( $login, $password, $authenticationMatch );
        if ( $user instanceof eZUser )
        {
            $userID = $user->attribute( 'contentobject_id' );
            $paex = eZPaEx::getPaEx( $userID, true );

            if ( $paex instanceof eZPaEx && $paex->isExpired() )
            {
                self::passwordHasExpired( $user );
                return false;
            }
            else
            {
                self::loginSucceeded( $user );
                return $user;
            }
        }
        else
        {
            self::loginFailed( $user, $login );
            return false;
        }

        return $user;
    }
public static function loginUser( $login, $password, $authenticationMatch = false )
    {
        $user = self::_loginUser( $login, $password, $authenticationMatch );
        if ( $user instanceof eZUser )
        {
            $userID = $user->attribute( 'contentobject_id' );
            $paex = eZPaEx::getPaEx( $userID, true );

            if ( $paex instanceof eZPaEx && $paex->isExpired() )
            {
                self::passwordHasExpired( $user );
                return false;
            }
            else
            {
                self::loginSucceeded( $user );
                return $user;
            }
        }
        else
        {
            self::loginFailed( $user, $login );
            return false;
        }

        return $user;
    }
public static function loginUser ( $ login , $ password , $ authenticationMatch = false ) { $ user = self :: _loginUser ( $ login , $ password , $ authenticationMatch ) ; if ( $ user instanceof eZUser ) { $ userID = $ user -> attribute ( 'contentobject_id' ) ; $ paex = eZPaEx :: getPaEx ( $ userID , true ) ; if ( $ paex instanceof eZPaEx && $ paex -> isExpired ( ) ) { self :: passwordHasExpired ( $ user ) ; return false ; } else { self :: loginSucceeded ( $ user ) ; return $ user ; } } else { self :: loginFailed ( $ user , $ login ) ; return false ; } return $ user ; }
Logs in the user if applied login and password is valid.

@param string $login
@param string $password
@param bool $authenticationMatch
@return mixed eZUser or false
Logs in the user if applied login and password is valid .