ezequieldevjs
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
I did it but the same thing happens I got an error in the code I’ve been with this for 1 week it’s strange
var myHeaders = new Headers(); myHeaders.append("Authorization", "Basic YWRtaW46YWRtaW4="); myHeaders.append("Content-Type", "application/json"); var raw = JSON.stringify({ "email": "[email protected]", "code": "1649433055:$P$BPj.ARCOcAz1CKF.6XoiIyVtb7jZCN", "new_password": "12345622233" }); var requestOptions = { method: 'PUT', headers: myHeaders, body: raw, redirect: 'follow' }; fetch("http://localhost:8888/curabrochero/?rest_route=/simple-jwt-login/v1/user/reset_password", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));{ "success": false, "data": { "message": "Invalid code provided.", "errorCode": 62 } }Thanks for answering!! but I have an error with the code:
{ "success": false, "data": { "message": "Invalid code provided.", "errorCode": 62 } }var myHeaders = new Headers(); myHeaders.append("Authorization", "Basic YWRtaW46YWRtaW4="); myHeaders.append("Content-Type", "application/json"); var raw = JSON.stringify({ "email": "[email protected]" }); var requestOptions = { method: 'PUT', headers: myHeaders, body: raw, redirect: 'follow' }; fetch("http://localhost:8888/curabrochero/?rest_route=/simple-jwt-login/v1/user/reset_password&code=1649426318:$P$B91uVsTshZ04dHoxFSjyotlZxqgZxN0&new_password=123456789", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
Viewing 2 replies - 1 through 2 (of 2 total)