(login, password, isEmail = false)
| 4 | const MockEmailAdapterWithOptions = require('./support/MockEmailAdapterWithOptions'); |
| 5 | |
| 6 | const verifyPassword = function (login, password, isEmail = false) { |
| 7 | const body = !isEmail ? { username: login, password } : { email: login, password }; |
| 8 | return request({ |
| 9 | url: Parse.serverURL + '/verifyPassword', |
| 10 | headers: { |
| 11 | 'X-Parse-Application-Id': Parse.applicationId, |
| 12 | 'X-Parse-REST-API-Key': 'rest', |
| 13 | }, |
| 14 | qs: body, |
| 15 | }) |
| 16 | .then(res => res) |
| 17 | .catch(err => err); |
| 18 | }; |
| 19 | |
| 20 | const isAccountLockoutError = function (username, password, duration, waitTime) { |
| 21 | return new Promise((resolve, reject) => { |
no test coverage detected