Skip to content

Commit

Permalink
Add logging for username and password in loginUser function
Browse files Browse the repository at this point in the history
  • Loading branch information
David-TP committed Oct 14, 2024
1 parent e7297a8 commit 798cada
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/auth/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const loginUser = async (req, res) => {
try {
const { username, password } = req.body;

console.log(username, password);

const user = await Users.findOne({ where: { username } });
if (!user) {
return res.status(401).json({ message: 'Invalid credentials' });
Expand Down

0 comments on commit 798cada

Please sign in to comment.