Skip to content

Commit

Permalink
added securitymd for development
Browse files Browse the repository at this point in the history
  • Loading branch information
TejasNair9977 committed Oct 15, 2023
1 parent 6662bde commit 1ba3941
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Security Policy

## Supported Versions

The project is still in its development phase, so plase report issues only if they are in the `main` or the `development` branch!

## Reporting a Vulnerability

Please report (suspected) security vulnerabilities to **[me](mailto:[email protected])**. You will probably receive a response from me within 48 hours. If the issue is confirmed, we will release a patch as soon as possible depending on complexity but historically within a few days.
2 changes: 0 additions & 2 deletions controller/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ async function login(req, res) {
const { id, password } = req.body;
try {
const userValidated = await authenticateUser(id, password);
console.log(userValidated);
const userDetails = {
uid: userValidated.uid,
name: userValidated.name,
emailId: userValidated.emailId,
type: userValidated.userType,
};
const token = util.generateToken(userDetails, req.ip);
console.log("generated");
userDetails.token = token;
res.json({ res: "welcome", user: userDetails });
} catch (error) {
Expand Down
1 change: 0 additions & 1 deletion services/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export async function createUser(name, password, emailId, uid, userType) {
uid,
userType,
});
console.log(newUser);
if (newUser.uid === uid) {
return newUser;
}
Expand Down

0 comments on commit 1ba3941

Please sign in to comment.