|
$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?
ctf_marker/admin.php
Line 1014 in 5135484
The users DB is defined with
`T_TYPE` varchar(1) NOT NULL,But the Admin user is added without T_TYPE, which causes:
I added the Admin user with a T_TYPE of
Lbased on what I could see from other spots in the code. It seems to work. Should line 1014 include a T_TYPE of L?