You are not logged in.
Pages: 1
Hi,
I try to add a user on the server with this code :
LStandardAppliUser := TSQLAuthUser.Create;
LStandardAppliUser.LogonName := 'StdUser';
LStandardAppliUser.PasswordPlain := 'Efficaps';
FServer.Add(LStandardAppliUser, False);
But when i try to set a session with this user on the client side :
FModel := TSQLModel.Create([]);
FHttpClient := TSQLHttpClient.Create('LOCALHOST', PORT_NAME, FModel);
FHttpClient.SetUser('StdUser','Efficaps');
I've got a forbidden error. How can i add a user even in designtime?
Offline
As documented, you need to set the Group of the user.
Your user has its Group set to 0, so even if authenticated, there is no right associated to it.
Offline
Pages: 1