fix changepwd
This commit is contained in:
parent
5540c2a07d
commit
80f8d051d4
@ -125,6 +125,10 @@ const App = () => {
|
|||||||
|
|
||||||
useAfterPay()
|
useAfterPay()
|
||||||
|
|
||||||
|
console.log("location")
|
||||||
|
console.log(location)
|
||||||
|
console.log("window.location")
|
||||||
|
console.log(window.location)
|
||||||
|
|
||||||
if (location.state?.redirectTo)
|
if (location.state?.redirectTo)
|
||||||
return (
|
return (
|
||||||
@ -176,7 +180,7 @@ const App = () => {
|
|||||||
to="/"
|
to="/"
|
||||||
replace
|
replace
|
||||||
state={{
|
state={{
|
||||||
redirectTo: `changepwd/${window.location.search}`,
|
redirectTo: `/changepwd${location.search}`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,8 @@ export default function RecoverPassword() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const params = new URLSearchParams(window.location.search);
|
const params = new URLSearchParams(window.location.search);
|
||||||
const authToken = params.get("auth");
|
const authToken = params.get("auth");
|
||||||
|
console.log("authToken")
|
||||||
|
console.log(authToken)
|
||||||
setTokenUser(authToken);
|
setTokenUser(authToken);
|
||||||
|
|
||||||
history.pushState(null, document.title, "/changepwd");
|
history.pushState(null, document.title, "/changepwd");
|
||||||
|
Loading…
Reference in New Issue
Block a user