Active: Boolean
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- backend
Research direction
Start in the usersController file mentioned in the issue and compare the user object with the working sample. Reproduce the POST-user validation error, then verify that the request succeeds without the required active-field error and that duplicate validation still works.
Written by the indexing model from the issue text.
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 };
- Dominant language
- JavaScript
- Stars
- 610
- Forks
- 398
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gitdagray/mern_stack_course
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
gitdagray/mern_stack_course#10 · 1 comment ·
All issues in gitdagray/mern_stack_course
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·