Skip to content

Commit

Permalink
fix: incorrect path of 401.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Jun 10, 2022
1 parent 34221a6 commit 7b2df5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/oauth/middleware/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports.isOAuthLogin = async function (req, res, next) {
return res
.status(401)
.render(
path.join(__dirname + "/../public/html/errors", "401.html")
"html/errors/401.html"
);
} else if (req.query.code != undefined) {
// 如果有Auth code 就試試看跟OAuth請求token
Expand Down

0 comments on commit 7b2df5f

Please sign in to comment.