medic/cht-conf

Name and email address missing from `users.csv` when using `csv-to-docs`

binokaryg opened this issue · 0 comments

For the users created via UI, we can enter the name and email address that are stored as fullname and email respectively. They are helpful to identify users and contact them if necessary.
image

However, when using csv-to-docs, the name and email address are dropped from the resulting users.csv.

This is probably because the following list of fields is missing fullname and email:

const fields = ['username', 'password', 'roles', 'contact', 'phone', 'place'];

Shall we add them?