Skip to content

Commit da9a050

Browse files
committed
Update ChangePass.js
1 parent d5f0a00 commit da9a050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/ChangePass.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useEffect } from "react";
22
import { useLocation, useNavigate } from "react-router-dom";
33
import useFetch from "../hooks/useFetch";
44
import Error from "./Errorpage";
5-
5+
import { SERVER_URL } from '../config/server';
66
function ChangePass() {
77
let url = useLocation();
88
const { data, loading, error, reFetch } = useFetch(url.pathname);
@@ -27,7 +27,7 @@ function ChangePass() {
2727
</h1>
2828
<form
2929
className="space-y-4 md:space-y-6"
30-
action={`http://localhost:8000/dept/${dept}/confirmation/submit/${token}`}
30+
action={SERVER_URL+`/dept/${dept}/confirmation/submit/${token}`}
3131
method="POST"
3232
>
3333
<div>

0 commit comments

Comments
 (0)