update report no date check session
This commit is contained in:
@ -57,30 +57,29 @@ const TheContent = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function fetchUser() {
|
async function fetchUser() {
|
||||||
return true;
|
if(SsoSession.attributes[0] === undefined) {
|
||||||
// if(SsoSession.attributes[0] === undefined) {
|
return false;
|
||||||
// return false;
|
}
|
||||||
// }
|
const user_email = SsoSession.attributes[0].values[0]
|
||||||
// const user_email = SsoSession.attributes[0].values[0]
|
//console.log(user_email);
|
||||||
// //console.log(user_email);
|
const company_code = "FBS";
|
||||||
// const company_code = "FBS";
|
const key = "api"
|
||||||
// const key = "api"
|
const pwd = "c558a56c63c44f65956adde8863ecc3558f3e55a465d4338bb2e7d2692866fd8";
|
||||||
// const pwd = "c558a56c63c44f65956adde8863ecc3558f3e55a465d4338bb2e7d2692866fd8";
|
|
||||||
|
|
||||||
// const result = await axios.get('https://fsbsso.sumasen.net/users?email=' + user_email, {
|
const result = await axios.get('https://fsbsso.sumasen.net/users?email=' + user_email, {
|
||||||
// auth: {
|
auth: {
|
||||||
// username: key,
|
username: key,
|
||||||
// password: pwd
|
password: pwd
|
||||||
// }
|
}
|
||||||
// }).catch((err) => {
|
}).catch((err) => {
|
||||||
// console.log(err);
|
console.log(err);
|
||||||
// return false;
|
return false;
|
||||||
// });
|
});
|
||||||
// //console.log(result.data);
|
//console.log(result.data);
|
||||||
// if(JSON.stringify(UserData) !== JSON.stringify(result.data[0])) {
|
if(JSON.stringify(UserData) !== JSON.stringify(result.data[0])) {
|
||||||
// setUserData(result.data[0]);
|
setUserData(result.data[0]);
|
||||||
// }
|
}
|
||||||
// return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isCSVPath(){
|
function isCSVPath(){
|
||||||
|
|||||||
Reference in New Issue
Block a user