update user_id 10
This commit is contained in:
@ -107,7 +107,6 @@ const TheContent = () => {
|
||||
}
|
||||
|
||||
function get_token_from_storage_or_cookie() {
|
||||
if(isDataFetched) return true;
|
||||
const cookies = new Cookies();
|
||||
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66627373736f2e74732e62697a736964652e62697a2f73686962626f6c657468')
|
||||
if (shib !== undefined) {
|
||||
@ -168,14 +167,16 @@ const TheContent = () => {
|
||||
exact={route.exact}
|
||||
name={route.name}
|
||||
render={(props) =>
|
||||
isDataFetched ?
|
||||
get_token_from_storage_or_cookie() !== null ? (
|
||||
<route.component {...props} userid={UserId} email={UserData.email} />
|
||||
) : (
|
||||
<Redirect to={{ pathname: "/sso" }} />
|
||||
)
|
||||
isDataFetched == false ?
|
||||
get_token_from_storage_or_cookie() !== null ? (
|
||||
<route.component {...props} userid={UserId} email={UserData.email} />
|
||||
) : (
|
||||
<Redirect to={{ pathname: "/sso" }} />
|
||||
)
|
||||
:
|
||||
null
|
||||
(
|
||||
<route.component {...props} userid={UserId} email={UserData.email} />
|
||||
)
|
||||
}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user