Quatrix JavaSctipt APIs
Space shortcuts
Quatrix JavaSctipt APIs QJA
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Changes information about specified user. Check "data" example below.

Parameters 

 

Name TypeDescription

loginid

required

string

specified user id

data

required

object

information about user

cb

optional

functioncallback function

 

 

Example

this.userEdit = function(loginid, data, cb) {
  if(data.password)
  data.password = _cryptString(data.password);
  return _request({
    method: 'POST',
    url: '/user/edit/'+loginid,
    data: data,
    callback: cb
  });
};

 

 

Example Result

{
 email: "john@smith.com"
 expires: 0
 groups: []
 home_operations: 191
 language: "en_GB"
 parent: "12345678-1234-1234-1234-123456789098"
 realname: "john smithy"
 status: "A"
 super_admin: "N"
 user_operations: 3
 users: []
}

 

 

  • No labels
Quatrix JavaSctipt APIs QJA