Example #1
0
        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);
        }
Example #2
0
 public bool ValidateAuth()
 {
     return(UserMgr.HasLogin());
 }