Server script login

Hi All trying to create a login via SQL, I it returning the EmployeeID so that not username or password is stored im trying to create a script following appery
https://www.youtube.com/watch?v=YMGOy...

Here is what theSQL server returns in the responce body field on a successful login
[
{
"": "1EF7C992-CBC1-45AF-83CC-304044E8284B"
}
]

if not then you get
[
{
"": ""
}
]

in the script to check if its over a certain length i get user not found for both even when the length is over 44

if (BODY.length > 10) {
result = {
"Status": "User found",
"Code": 200
};
} else {
result = {
"Status": "User not found",
"Code": 404
};
}

anyone help?

thank you
1 person has
this question
+1
Reply