You are not logged in.
I use mORMot to write a service program, the create code is as follows:
fModel := TSQLModel.Create([TSQLAuthUser, TSQLAuthGroup],ROOT_NAME);
fRestServer := TSQLRestServerFullMemory.Create(fModel,false);
ServiceFactoryServer := fRestServer.ServiceDefine(TRestMethods,[IRestMethods], SERVICE_INSTANCE_IMPLEMENTATION);
fRestServer.AuthenticationRegister(TSQLRestServerAuthenticationDefault);
At the start of service dynamically add user and user group information based on user tables in the database,
The problem is that I changed(update,delete or insert) the user information in the database,
How can I dynamically change the server and user and user group settings during service operation?
Thanks!
Offline