We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/bradtraversy/proshop-v2/blob/2e3eb75f94caa23108663b19eac7945020409410/backend/controllers/userController.js#L124C26-L124C26
Even for admin , access should be restricted.
Issue line : 124 : const users = await User.find({});
Fix : const users = await User.find({}).select("-password");
The text was updated successfully, but these errors were encountered:
solved check my pullr request
Sorry, something went wrong.
No branches or pull requests
https://github.com/bradtraversy/proshop-v2/blob/2e3eb75f94caa23108663b19eac7945020409410/backend/controllers/userController.js#L124C26-L124C26
Even for admin , access should be restricted.
Issue line : 124 : const users = await User.find({});
Fix : const users = await User.find({}).select("-password");
The text was updated successfully, but these errors were encountered: