Commit on useradd

This commit is contained in:
Nadja Reitzenstein 2022-03-15 20:00:52 +01:00
parent c0b311e14c
commit 648026574f

View File

@ -110,6 +110,7 @@ impl UserDB {
let mut txn = self.env.begin_rw_txn()?; let mut txn = self.env.begin_rw_txn()?;
let flags = WriteFlags::empty(); let flags = WriteFlags::empty();
self.db.put(&mut txn, &uid.as_bytes(), user, flags)?; self.db.put(&mut txn, &uid.as_bytes(), user, flags)?;
txn.commit()?;
Ok(()) Ok(())
} }