Skip to content

Commit 0cd3c68

Browse files
Merge pull request #412 from tcet-opensource/hotfixsecurity
added securitymd for development
2 parents 6662bde + 1ba3941 commit 0cd3c68

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

SECURITY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
The project is still in its development phase, so plase report issues only if they are in the `main` or the `development` branch!
6+
7+
## Reporting a Vulnerability
8+
9+
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.

controller/auth.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ async function login(req, res) {
66
const { id, password } = req.body;
77
try {
88
const userValidated = await authenticateUser(id, password);
9-
console.log(userValidated);
109
const userDetails = {
1110
uid: userValidated.uid,
1211
name: userValidated.name,
1312
emailId: userValidated.emailId,
1413
type: userValidated.userType,
1514
};
1615
const token = util.generateToken(userDetails, req.ip);
17-
console.log("generated");
1816
userDetails.token = token;
1917
res.json({ res: "welcome", user: userDetails });
2018
} catch (error) {

services/user.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export async function createUser(name, password, emailId, uid, userType) {
4040
uid,
4141
userType,
4242
});
43-
console.log(newUser);
4443
if (newUser.uid === uid) {
4544
return newUser;
4645
}

0 commit comments

Comments
 (0)