#1 Re: mORMot 1 » SessionUser.Data not Loading on SetUser » 2019-04-05 12:25:01

I'm trying to get a SessionUser.Data field, but unsuccessfully.

  //user cTestUser was created with Data:='hello' and AuthGroup 'User'
  RESTClient.SetUser(cTestUser,cTestPass); //true
  RESTClient.RetrieveBlobFields(RESTClient.SessionUser); //there are False with 405 error (not allowed)
  RESTClient.SessionUser.Data; // is empty

What am I doing wrong? Thanks.

With "Supervisor" group all works as expected, but I need to get Data for any user.

Board footer

Powered by FluxBB