Skip to content

Commit 1561cd5

Browse files
committed
Changes base url for change pass
1 parent da9a050 commit 1561cd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pages/AfterForgotPass.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { Link, useLocation, useNavigate } from "react-router-dom";
3-
3+
import { SERVER_URL } from '../config/server';
44
function AfterForgotPass() {
55
const url = useLocation();
66
const dept = url.pathname.split("/")[2];
@@ -24,7 +24,7 @@ function AfterForgotPass() {
2424
<form
2525
className="px-8 pt-6 pb-8 mb-4 bg-white rounded"
2626
method="post"
27-
action={`http://localhost:8000/dept/${dept}/confirmation`}
27+
action={`${SERVER_URL}/dept/${dept}/confirmation`}
2828
>
2929
<div className="mb-4">
3030
<label

src/pages/ChangePass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function ChangePass() {
2727
</h1>
2828
<form
2929
className="space-y-4 md:space-y-6"
30-
action={SERVER_URL+`/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)