Thanks.
And yes I can explain.
We have a setup where all users are registerede in a user database that we maintain ourself. We could go with some sevice that provides this - but we found a way to do it ourselves. We have developed an api (not unigui - with dmvc framework (Daniele Teti) - that handles our login and returns information when login is validated.
So I want to use this in the sample application from unigui. And is thinking something like this would be ok.
procedure TfrmLogin.btnLoginClick(Sender: TObject);
var
lUserdatabase: string;
begin
if THandlerAuth.Login(edMail.text, edPassword.text, lUserdatabase) then
begin
if UniMainModule.SetupDatabaseConnection(lUserdataBase) then
ModalResult := mrOK;
end;
end;
This scenario only accepts 1 database. But it could be different for each user.
I already have the handler working - since its based on working api solution. So all I need is confirmation that this is the way to go for a unigui application.