classes/BearCMS/CurrentUser.php
public function login(string $userID): bool
    {
        $data = Internal\Server::call('login', ['userID' => $userID], true);
        if (isset($data['result'])) {
            return $data['result'] === 'ok';
        }
        return false;
    }
public function login(string $userID): bool
    {
        $data = Internal\Server::call('login', ['userID' => $userID], true);
        if (isset($data['result'])) {
            return $data['result'] === 'ok';
        }
        return false;
    }
public function login ( string $ userID ) : bool { $ data = Internal \ Server :: call ( 'login' , [ 'userID' => $ userID ] , true ) ; if ( isset ( $ data [ 'result' ] ) ) { return $ data [ 'result' ] === 'ok' ; } return false ; }
Login a user without email and password validation. This methods must be enabled on the CMS server.

@param string $userID
@return bool Returns TRUE if the user is logged in successfully, FALSE otherwise.
Login a user without email and password validation . This methods must be enabled on the CMS server .