Skip to content

Commit 71c02fa

Browse files
committed
Use Borum Forum for password reset
1 parent 9a7846d commit 71c02fa

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

src/ForgotPassword/forgotPassword.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@ export default function ForgotPassword(props) {
99
const [email, setEmail] = useState("");
1010

1111
const handleEmailSubmit = (e, setConfirmed) => {
12-
fetch(`https://api.borumtech.com/api/v1/login`, {
13-
method: "put",
12+
fetch(`https://forum.borumtech.com/reset_password`, {
13+
method: "POST",
1414
headers: {
15-
"Content-Type": "application/x-www-form-urlencoded",
15+
"content-type": "application/x-www-form-urlencoded"
1616
},
17-
body: `email=${email}`,
17+
body: `email=${email}`
1818
})
19-
.then(response => {
20-
if (response.ok) {
21-
return response.json();
22-
}
23-
})
2419
.then(response => setConfirmed(CONFIRMED_STATE.SUCCESS))
2520
.catch(response => {
2621
setConfirmed(CONFIRMED_STATE.FAILURE);

0 commit comments

Comments
 (0)