MCPcopy
hub / github.com/parse-community/parse-server / resetRequest

Function resetRequest

spec/vulnerabilities.spec.js:3500–3510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3498
3499 // Send two concurrent password reset requests with different passwords
3500 const resetRequest = password =>
3501 request({
3502 method: 'POST',
3503 url: 'http://localhost:8378/1/apps/test/request_password_reset',
3504 body: `new_password=${encodeURIComponent(password)}&token=${encodeURIComponent(token)}`,
3505 headers: {
3506 'Content-Type': 'application/x-www-form-urlencoded',
3507 'X-Requested-With': 'XMLHttpRequest',
3508 },
3509 followRedirects: false,
3510 });
3511
3512 const [resultA, resultB] = await Promise.allSettled([
3513 resetRequest('PasswordA1!'),

Callers 1

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected