Open
Description
The code block below that is inside the file usersController is missing the active parameter.
I added a sample code below it to be compared to the original code, if you have the time, thanks.
I realized that when I used the first code blocked below this line, I got back the following error after trying to POST a user. ("message": "User validation failed: active: Path active
is required.")
But after trying the second code block everything went smoothly including the duplicate validation.
This is my first time of raising an issue, please pardon my crudeness.
const userObject = { username, password: hashedPwd, roles};
const userObject = { username, password: hashedPwd, roles, active: true };
Metadata
Metadata
Assignees
Labels
No labels