Skip to content

Commit

Permalink
[Task] #81, remove password log
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed May 27, 2024
1 parent ace6b5a commit ffd8183
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/controller/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ router.post("/", loginSlowDown, async function postLogin(req: Request, res: Resp
const user = req.body.user;
const password = req.body.password;
let userFound = false;
console.log(`user: ${user}, password: ${password}`);
if (!user || !password) { return createError(res, 422, "Body does not contain all expected information", next); }
if (!token || !validateCSRF(req.body.csrfToken)) { return createError(res, 403, "Invalid CSRF Token \n retry in 5 Minuits", next); }

Expand Down

0 comments on commit ffd8183

Please sign in to comment.