From 67f44a3212953b8432c9c68d6c4347da7e27e545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 27 May 2023 16:46:04 -0400 Subject: [PATCH 1/2] feat: add back support for req.body._csrf used in login.tpl etc for noscript login --- src/middleware/csrf.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/middleware/csrf.js b/src/middleware/csrf.js index be5b0761fe..cf85e2a0b4 100644 --- a/src/middleware/csrf.js +++ b/src/middleware/csrf.js @@ -12,7 +12,9 @@ const { return req.headers['x-csrf-token']; } else if (req.body && req.body.csrf_token) { return req.body.csrf_token; - } else if (req.query) { + } else if (req.body && req.body._csrf) { + return req.body._csrf; + } else if (req.query && req.query._csrf) { return req.query._csrf; } }, From 0c4870ec1280a9ae2d1f7432aa531e3659afbc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 27 May 2023 18:12:25 -0400 Subject: [PATCH 2/2] refactor: change welcome headers to be smaller --- install/data/welcome.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/data/welcome.md b/install/data/welcome.md index 86b61b63fd..8a6eb5e9f8 100644 --- a/install/data/welcome.md +++ b/install/data/welcome.md @@ -1,9 +1,9 @@ -# Welcome to your brand new NodeBB forum! +### Welcome to your brand new NodeBB forum! This is what a topic and post looks like. As an administrator, you can edit the post\'s title and content. To customise your forum, go to the [Administrator Control Panel](../../admin). You can modify all aspects of your forum there, including installation of third-party plugins. -## Additional Resources +#### Additional Resources * [NodeBB Documentation](https://docs.nodebb.org) * [Community Support Forum](https://community.nodebb.org)