added user api
This commit is contained in:
@ -44,7 +44,8 @@ const TheContent = () => {
|
||||
password: pwd
|
||||
}
|
||||
});
|
||||
setUserData(result);
|
||||
console.log(result.data);
|
||||
setUserData(result.data);
|
||||
}
|
||||
|
||||
function get_token_from_storage_or_cookie() {
|
||||
@ -63,8 +64,6 @@ const TheContent = () => {
|
||||
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66736273736f2e73756d6173656e2e6e65742f73686962626f6c657468')
|
||||
if (shib !== undefined) {
|
||||
fetchSession().then(() => {
|
||||
console.log('fetch session');
|
||||
console.log(SsoSession.length);
|
||||
if (SsoSession !== null) {
|
||||
fetchUser().then(() => {
|
||||
console.log('requesting user data');
|
||||
|
||||
Reference in New Issue
Block a user