Пример #1
0
        public Logins Login(string username, string password)
        {
            //string IPAddress = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
            //if (string.IsNullOrEmpty(IPAddress))
            //{
            //    IPAddress = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
            //}

            Logins logins = new Logins();

            logins.AttemptLogin(username, password);
            //if (logins.Attempts == 5)
            //{
            //UserVars.CurrentUser = null;
            //SessionManager.ClearSessionVariables();
            //}
            return(logins);
        }