adnanrahic / adnanrahic/boilerplate-api
Add projections to User model queries in UserProvider.js
Đang mở
bug
help wanted
- Ngôn ngữ chính
- JavaScript
- Star
- 22
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
In the `UserProvider.js` every User query returns the full user object. This is a security vulnerability as we never want to return the password in the response even if it is hashed. Refactor all queries in the `UserProvider.js` not to return the password field. Refactor the tests to work cover the new user projections.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.