Skip to content

Create User function can't run properly. #14

@1itt1eB0y

Description

@1itt1eB0y

when you create a new user (cmd or web either), it will only add record in oddslingers_user table. with docker-compose.yml and default config.
I manually added root to the stats table。
here is the POC

DO
$$
DECLARE
    _table_name text;
    _column_name text;
    _uuid text := 'b43794a3-d81b-42fa-90a7-791e5e7ad864';
    _query text;
    _result int;
BEGIN
    FOR _table_name, _column_name IN (SELECT table_name, column_name FROM information_schema.columns WHERE table_schema = 'public' AND data_type = 'uuid')
    LOOP
        _query := format('SELECT COUNT(*) FROM %I WHERE %I = %L', _table_name, _column_name, _uuid);
        EXECUTE _query INTO _result;
        IF _result > 0 THEN
            RAISE NOTICE 'Table % contains the UUID', _table_name;
        END IF;
    END LOOP;
END
$$

图片

web error screenshots
图片
图片
图片
图片

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions