change userid
This commit is contained in:
@ -108,6 +108,7 @@ const TheContent = () => {
|
||||
|
||||
function get_token_from_storage_or_cookie() {
|
||||
//return true;
|
||||
user_id = null;
|
||||
const cookies = new Cookies();
|
||||
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66627373736f2e74732e62697a736964652e62697a2f73686962626f6c657468')
|
||||
if (shib !== undefined) {
|
||||
@ -117,7 +118,8 @@ const TheContent = () => {
|
||||
fetchUser().then(() => {
|
||||
if(UserId === ''){
|
||||
let id = Math.floor(100000 + Math.random() * 900000)
|
||||
setUserId(id);
|
||||
user_id = id;
|
||||
//setUserId(id);
|
||||
}
|
||||
const _firstname = UserData.firstname;
|
||||
const _lastname = UserData.lastname;
|
||||
@ -145,6 +147,7 @@ const TheContent = () => {
|
||||
return true;
|
||||
});
|
||||
}
|
||||
setUserId(user_id);
|
||||
});
|
||||
} else {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user