diff --git a/assets/script.js b/assets/script.js index 730a085..27fc18a 100644 --- a/assets/script.js +++ b/assets/script.js @@ -1,7 +1,7 @@ let UserInfo = {}; function isLoggedIn(){ - return UserInfo.ID && UserInfo.ID > 0; + return UserInfo.Email && UserInfo.Email.length > 0; } async function handleResponse(data, successMessage, failureMessage) {