Esempio n. 1
0
        private void CheckIfActive(string usnUsername, string passWord)
        {
            try
            {
                var     credentials = new NetworkCredential(ConfigurationManager.AppSettings["W_USER"], ConfigurationManager.AppSettings["W_PWD"], ConfigurationManager.AppSettings["DOMAIN"]);
                Portals sup         = new Portals();
                sup.Credentials     = credentials;
                sup.PreAuthenticate = true;

                if (sup.FnCheckIfActive_Grantee(usnUsername))
                {
                    // KCDFAlert.ShowAlert("Active Member");
                    GetGranteePassword(usnUsername, passWord);
                    LoginFn(usnUsername, passWord);
                    return;
                }
            }
            catch (Exception ex)
            {
                KCDFAlert.ShowAlert(ex.Message);
            }
        }