public static bool HasLogin() { var userAuth = UserMgr.ReadUserInfo(); if (userAuth == null) { return(false); } int userSysNo = userAuth.UserSysNo; string userID = userAuth.UserID; if (userSysNo <= 0 || string.IsNullOrWhiteSpace(userID)) { return(false); } return(true); }
public bool ValidateAuth() { return(UserMgr.HasLogin()); }