-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
Feat: user login with email and password PR #62
Conversation
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
10624400 | Triggered | Generic Password | 21fd82e | src/test/signin.test.ts | View secret |
10624401 | Triggered | Generic Password | 21fd82e | src/test/signin.test.ts | View secret |
10624402 | Triggered | Generic Password | 21fd82e | src/test/signin.test.ts | View secret |
10802115 | Triggered | Generic Password | 21fd82e | src/test/signin.test.ts | View secret |
10811125 | Triggered | Generic Password | 21fd82e | src/test/signin.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
This is a combination of 2 commits. This is a combination of 3 commits. Implemented user registration feature with input validation, password hashing, and database integration user login feature Implemented user registration feature with input validation, password hashing, and database integration fix(user registration): resolve registration bug - ensure that a user provide neccessary inputs - restructure user entity - refactor other codes depending on user registration logic [Fixes #39] rebasing from develop , adding verifie route and service and send email to the user rebasing from develop , adding verifie route and service and send email to the user fix(user registration): resolve registration bug - ensure that a user provide neccessary inputs - restructure user entity - refactor other codes depending on user registration logic [Fixes #39] Update README.md user login feature
res.status(401).json({ Message: 'Sorry, Something went wrong' }); | ||
return; | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ndevu12 , in this file, focus on validating the token, fetching user data, and attach it to the request object. no need to verify the user type, it is already handled in the RBAC Issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okey thanks
What does this PR do?
This PR introduces a new feature that allows users to log in using their email and password.
Task completed
Task involved:
How should this be manually tested?