diff --git a/compose.yaml b/compose.yaml index 105fdcd..72c39f6 100644 --- a/compose.yaml +++ b/compose.yaml @@ -36,7 +36,7 @@ services: image: mongo:latest container_name: mongo-Dwinzocontainer ports: - - "27017:27017" + - "27020:27017" volumes: - mongo-data:/data/db networks: diff --git a/src/api-server/controller/user-Controller.ts b/src/api-server/controller/user-Controller.ts index 64c6e8c..8d1a810 100644 --- a/src/api-server/controller/user-Controller.ts +++ b/src/api-server/controller/user-Controller.ts @@ -50,7 +50,7 @@ export class user { }); if (existingMail === null || !existingMail) { - res.status(404).json({ message: "User Not Found!!! Kindly signup..." }); + res.status(401).json({ message: "User Not Found!!! Kindly signup..." }); } else { const hashedpassword= existingMail.password const checkpassword = await hashValidator(