Skip to content

Commit 54bc4e8

Browse files
committed
unified status codes
1 parent 96e94d4 commit 54bc4e8

File tree

1 file changed

+1
-1
lines changed
  • module4-authentication-and-security/r1.1-defining-authentication-layer

1 file changed

+1
-1
lines changed

module4-authentication-and-security/r1.1-defining-authentication-layer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ router.get("/dashboard", async (req, res) => {
390390
res.render("dashboard", { user, todos });
391391
} else {
392392
// user have not logged in, redirect to login page
393-
res.status(403).redirect("/login");
393+
res.status(401).redirect("/login");
394394
}
395395
});
396396

0 commit comments

Comments
 (0)