adnanrahic / adnanrahic/boilerplate-api

Add projections to User model queries in UserProvider.js

Đang mở
#14 0 bình luận 0 reaction 1 người được giao Được @nzekic nhận Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.