Skip to content

Fix passport auth#486

Merged
mehul-m-prajapati merged 2 commits into
GitMetricsLab:mainfrom
Aryan0819:fix-passport-auth
May 29, 2026
Merged

Fix passport auth#486
mehul-m-prajapati merged 2 commits into
GitMetricsLab:mainfrom
Aryan0819:fix-passport-auth

Conversation

@Aryan0819
Copy link
Copy Markdown
Contributor

Related Issue


Description

The Architectural Context:*
Security best practices dictate that sensitive fields like passwords should be excluded from standard database query responses to prevent accidental exposure down the network line (e.g., logging or sending data payloads back to the frontend UI). This is handled via Mongoose's field selection control (select: false).


Type of Change

  • [x ] Bug fix
  • New feature
  • Code style update
  • Breaking change
  • Documentation update

Aryan0819 added 2 commits May 24, 2026 12:44
Updated pre-save hook to include next() for proper middleware flow and error handling.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 24, 2026

Deploy Preview for github-spy ready!

Name Link
🔨 Latest commit 0fa4b26
🔍 Latest deploy log https://app.netlify.com/projects/github-spy/deploys/6a13057d2598f500083d838c
😎 Deploy Preview https://deploy-preview-486--github-spy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 24, 2026

Warning

Review limit reached

@Aryan0819, we couldn't start this review because you've used your available PR reviews for now.

Your plan currently allows 1 review/hour. Refill in 47 minutes and 12 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ec001c72-7e85-4190-980e-fed62ad85d5c

📥 Commits

Reviewing files that changed from the base of the PR and between 6c6bc3e and 0fa4b26.

📒 Files selected for processing (2)
  • backend/config/passportConfig.js
  • backend/models/User.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mehul-m-prajapati mehul-m-prajapati merged commit 8481586 into GitMetricsLab:main May 29, 2026
10 checks passed
@github-actions
Copy link
Copy Markdown

🎉🎉 Thank you for your contribution! Your PR #486 has been merged! 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Passport-Local Hidden Password Trap

2 participants