fix: pass csrf_token into calls to /register/abort, #11017

This commit is contained in:
Julian Lam
2022-11-09 13:20:28 -05:00
parent 55a197a7d7
commit 2f9d8c350e
3 changed files with 8 additions and 5 deletions

View File

@@ -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,