mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: pass csrf_token into calls to /register/abort, #11017
This commit is contained in:
@@ -485,7 +485,7 @@ describe('API', async () => {
|
||||
const affectedPaths = ['GET /api/user/{userslug}/edit/email'];
|
||||
if (affectedPaths.includes(`${method.toUpperCase()} ${path}`)) {
|
||||
await request({
|
||||
uri: `${nconf.get('url')}/register/abort`,
|
||||
uri: `${nconf.get('url')}/register/abort?_csrf=${csrfToken}`,
|
||||
method: 'POST',
|
||||
jar,
|
||||
simple: false,
|
||||
|
||||
Reference in New Issue
Block a user