2 ms·
The userId is coming from the client. I tried this which worked: ' UNION SELECT TOP 1 UserID, Username, 'MyCustomPassword' AS Passwort, ... FROM Users --. I got
by dharman 2y ago
The userId is coming from the client. I tried this which worked: ' UNION SELECT TOP 1 UserID, Username, 'MyCustomPassword' AS Passwort, ... FROM Users --. I got an user with the defaults of the first entry and my set password. The problem is that the userId from the client is also used in the second query. Here the union wont work anymore because of the column count mismatch. I dont even care about the results of the second query - it just must not throw an error but it seems to be impossible to write a query placed in the userId from the client doing what I did in the first query without affecting the second one so that it throws an error or?