File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { Link , useLocation , useNavigate } from "react-router-dom" ;
3
-
3
+ import { SERVER_URL } from '../config/server' ;
4
4
function AfterForgotPass ( ) {
5
5
const url = useLocation ( ) ;
6
6
const dept = url . pathname . split ( "/" ) [ 2 ] ;
@@ -24,7 +24,7 @@ function AfterForgotPass() {
24
24
< form
25
25
className = "px-8 pt-6 pb-8 mb-4 bg-white rounded"
26
26
method = "post"
27
- action = { `http://localhost:8000 /dept/${ dept } /confirmation` }
27
+ action = { `${ SERVER_URL } /dept/${ dept } /confirmation` }
28
28
>
29
29
< div className = "mb-4" >
30
30
< label
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function ChangePass() {
27
27
</ h1 >
28
28
< form
29
29
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 } `}
31
31
method = "POST"
32
32
>
33
33
< div >
You can’t perform that action at this time.
0 commit comments