Skip to content
Snippets Groups Projects
Commit 0ef7a55a authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Fix redirect Signin error

Change-Id: I1520a420c7b34a33c7c9829b8702bdfd57c347bf
parent dc5c61c5
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,13 @@ class Auth {
this.authenticated = true;
cb()
}).catch((error) => {
console.log("Error during API request on checkLastKnownStep: " + error);
if(error.response.status == 401){
this.authenticated = false;
console.log("Error during API request on checkLastKnowStep not authenticated!");
}
else{
console.log("Error during API request on checkLastKnowStep: " + error);
}
cb()
})
}
......
......@@ -26,6 +26,8 @@ export const ConfiguredRoute = ({ component: Component, ...rest }) => {
console.log('Error no matching path for configuration')
}
}else {
return <SignIn />
}
} else {
return <SignUp step={0}/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment