|
|
@@ -26,19 +26,27 @@ export default function Verify() { |
|
|
|
|
|
|
|
const params = useParams() |
|
|
|
const handleVerify = async () => { |
|
|
|
console.log("handleVerify()"); |
|
|
|
const response = await axios.get(GET_VERIFY_USER_ACCOUNT, { |
|
|
|
// console.log("handleVerify()"); |
|
|
|
await axios.get(GET_VERIFY_USER_ACCOUNT, { |
|
|
|
params: { |
|
|
|
email: decodeURIComponent(params.email), |
|
|
|
emailVerifyHash: decodeURIComponent(params.verifyCode) |
|
|
|
} |
|
|
|
}) |
|
|
|
if (response.status === 200 && response.data) { |
|
|
|
setVerifyState(true) |
|
|
|
} else { |
|
|
|
}).then( |
|
|
|
(response)=>{ |
|
|
|
if (response.status === 200 && response.data) { |
|
|
|
setVerifyState(true) |
|
|
|
} else { |
|
|
|
setVerifyState(false) |
|
|
|
} |
|
|
|
setIsLoading(false) |
|
|
|
} |
|
|
|
).catch(error => { |
|
|
|
console.log(error) |
|
|
|
setVerifyState(false) |
|
|
|
} |
|
|
|
setIsLoading(false) |
|
|
|
setIsLoading(false) |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
@@ -80,7 +88,7 @@ export default function Verify() { |
|
|
|
<Stack mt={1} direction="column" justifyContent="flex-start" alignItems="center" spacing={2}> |
|
|
|
{/* <Button disabled={true} hidden={true} variant="contained" type="submit" sx={{ fontSize: 12,height:'25px'}}>Submit</Button> */} |
|
|
|
<CancelOutlinedIcon color="error" sx={{ width: "200px", height: "200px" }} /> |
|
|
|
<Typography display="inline" variant="h4"> |
|
|
|
<Typography display="inline" variant="h4" sx={{textAlign: 'justify'}}> |
|
|
|
<FormattedMessage id="verifyFail"/> |
|
|
|
</Typography> |
|
|
|
<Button color="error" variant="outlined" component={Link} to="/login"> |
|
|
|