- fixed 403 redirect on login;
This commit is contained in:
@@ -73,7 +73,7 @@ const LoginAdmin = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isEmpty(token)) {
|
if (!isEmpty(token) && !AuthenticationService.isExpired()) {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
window.location.replace('/')
|
window.location.replace('/')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user