We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a7846d commit 71c02faCopy full SHA for 71c02fa
1 file changed
src/ForgotPassword/forgotPassword.js
@@ -9,18 +9,13 @@ export default function ForgotPassword(props) {
9
const [email, setEmail] = useState("");
10
11
const handleEmailSubmit = (e, setConfirmed) => {
12
- fetch(`https://api.borumtech.com/api/v1/login`, {
13
- method: "put",
+ fetch(`https://forum.borumtech.com/reset_password`, {
+ method: "POST",
14
headers: {
15
- "Content-Type": "application/x-www-form-urlencoded",
+ "content-type": "application/x-www-form-urlencoded"
16
},
17
- body: `email=${email}`,
+ body: `email=${email}`
18
})
19
- .then(response => {
20
- if (response.ok) {
21
- return response.json();
22
- }
23
- })
24
.then(response => setConfirmed(CONFIRMED_STATE.SUCCESS))
25
.catch(response => {
26
setConfirmed(CONFIRMED_STATE.FAILURE);
0 commit comments