Skip to content

Commit

Permalink
Fix Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
theADAMJR committed Aug 6, 2021
1 parent 188ee91 commit 0d05836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/rest/routes/auth-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ router.post('/login', authenticate('local'), (req, res, next) => {
const userId = user.id;
const token = jwt.sign({ userId }, process.env.JWT_SECRET_KEY);

// if (user.locked)
if (user.locked)
next(createError(401, 'This account is locked'));

res.json(token);
Expand Down

0 comments on commit 0d05836

Please sign in to comment.