예제 #1
0
        public DataForLogin User_GetDataForLoginByUserame(string username)
        {
            if (!CheckClient())
            {
                return(null);
            }
            AuthUser user = UserBO.Instance.GetAuthUser(username);

            if (user == null || user == MaxLabs.bbsMax.Entities.User.Guest)
            {
                return(null);
            }
            DataForLogin userProxy = ProxyConverter.GetAuthUserProxy(user);

            return(userProxy);
        }
예제 #2
0
        public DataForLogin User_GetDataForLogin(int userID)
        {
            if (!CheckClient())
            {
                return(null);
            }
            AuthUser user = UserBO.Instance.GetAuthUser(userID);

            if (user == null || user == MaxLabs.bbsMax.Entities.User.Guest)
            {
                return(null);
            }
            DataForLogin userProxy = ProxyConverter.GetAuthUserProxy(user);

            userProxy.FriendVersion = user.FirendVersion;
            return(userProxy);
        }
예제 #3
0
        public DataForLogin User_GetDataForLoginByEmail(string email, out bool duplicateEmail)
        {
            duplicateEmail = false;

            if (!CheckClient())
            {
                return(null);
            }

            AuthUser user = UserBO.Instance.GetAuthUserByEmail(email, out duplicateEmail);

            if (user == null || user == MaxLabs.bbsMax.Entities.User.Guest)
            {
                return(null);
            }
            DataForLogin userProxy = ProxyConverter.GetAuthUserProxy(user);

            return(userProxy);
        }