Skip to content

Adding the Admin User during 'CREATE Users & Teams' fails due to lack of T_TYPE #10

@kernel-sanders

Description

@kernel-sanders

$insertToken = mysqli_query($connection, "INSERT INTO users (USERNAME, PASSWORD, TEAM, TYPE, TOKEN, TOKEN_HASH, TOKEN_ACT) VALUES ('admin','2722e43f2d69d11363dd048e69319dcf','0','A','A1B2C3D4','9cb4a9b49df14f3ee3c177f0f74ad443',1)");

The users DB is defined with
`T_TYPE` varchar(1) NOT NULL,

But the Admin user is added without T_TYPE, which causes:

Field 'T_TYPE' doesn't have a default value

I added the Admin user with a T_TYPE of L based on what I could see from other spots in the code. It seems to work. Should line 1014 include a T_TYPE of L?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions