You are not logged in.
Pages: 1
Hello,
In the sample 14 theres a code to set user and password:
Client.SetUser('User','synopse');
How can we change the name of the user and the password of the server?
Offline
I'm sorry if I have been annoying, is that I'm accustomed to the Datasnap, and all this is different to me.
I'm suppose to create a model off an TSQLAuthUser and TSQLAuthGroup?
Offline
So this snippet of code should change the password of the default user?
fServer := TSQLRestServerFullMemory.Create(fModel,'.\test.json',false,true);
fServer.CreateMissingTables(0);
aMormotUser := TSQLAuthUser.Create(fServer, 'Name=?', ['User']);
aMormotUser.PasswordPlain := 'NewPasswd';
assert( fServer.Update(aMormotUser), 'Default User password not changed!');
Unfortunately, the assert fails. What else needs to be done, so the password is changed? Or is this not the way to go?
fpcdeluxe, FPC 3.2 / Lazarus 2.0, mORMot on Windows 10 ...
Offline
Pages: 1