public LoginResponse Login(Hashtable request, UserAccount account, IAgentInfo agentInfo, string authType, string password, out object data)
        {
            data = null;

            string ip       = "";
            string version  = "";
            string platform = "";
            string mac      = "";
            string id0      = "";

            if (request != null)
            {
                ip       = request.ContainsKey("ip") ? (string)request["ip"] : "";
                version  = request.ContainsKey("version") ? (string)request["version"] : "";
                platform = request.ContainsKey("platform") ? (string)request["platform"] : "";
                mac      = request.ContainsKey("mac") ? (string)request["mac"] : "";
                id0      = request.ContainsKey("id0") ? (string)request["id0"] : "";
            }

            string message;

            if (!m_module.CheckUser(account.PrincipalID, ip,
                                    version,
                                    platform,
                                    mac,
                                    id0, out message))
            {
                return(new LLFailedLoginResponse(LoginResponseEnum.Indeterminant, message, false));
            }
            return(null);
        }
Exemple #2
0
        public bool Login(Hashtable request, UUID User, out string message)
        {
            string ip = (string)request["ip"];

            if (ip == null)
            {
                ip = "";
            }
            string version = (string)request["version"];

            if (version == null)
            {
                version = "";
            }
            string platform = (string)request["platform"];

            if (platform == null)
            {
                platform = "";
            }
            string mac = (string)request["mac"];

            if (mac == null)
            {
                mac = "";
            }
            string id0 = (string)request["id0"];

            if (id0 == null)
            {
                id0 = "";
            }
            return(m_module.CheckUser(User, ip,
                                      version,
                                      platform,
                                      mac,
                                      id0, out message));
        }