ra0o0f / arangoclient.net

ArangoDB .NET Client with LINQ support
Apache License 2.0
99 stars 37 forks source link

Working with System Users #74

Open agrothe opened 7 years ago

agrothe commented 7 years ago

Trying to create new database users and running into a few issues. I see there is a DatabaseUser class but the only use is when creating a new database.

I've tried inserting into a collection via string name "_users" and also created a class named "_users". Both result in a new document in the system database _users but it doesn't get created correctly, for example the password isn't hashed.

var myuser = new _users() { user = username, passwd = password };
var result = ad.Insert<_users>(myuser);

Both give the result

[
  {
    "_id": "_users/810490",
    "_key": "810490",
    "_rev": "_UwlJt3y---",
    "passwd": "password",
    "user": "Andrew"
  },...

Is this on the radar? For now I just implemented my own HTTP methods.

ra0o0f commented 7 years ago

@agrothe sorry for delay, creating user should be done in User Management HTTP API.

i will add this feature