[CSHARP-1026] Need to be able to convert a password to its hash value using c# Created: 06/Aug/14 Updated: 05/Apr/19 Resolved: 04/Apr/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Jaya | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I am trying to come up with a C# code to add users to a mongodb database. var user = new MongoUser("foouser", new PasswordEvidence("foopassword"), true); var database = server.GetDatabase("admin"); var usersCollection = database.GetCollection("system.users"); , , , ) } }; usersCollection.Insert(userDocument); |