duan
2024-08-21 22bd5bc1ce2b49284cc2f042c7f4f48619fcf85b
src/DIXWeb.Web/Controllers/HomeController.cs
@@ -19,6 +19,7 @@
using DIXWeb.DataRepository;
using DIXWeb.Entity.EasyUI;
using DIXWeb.Business.Workflow;
using DMC;
namespace DIXWeb.Web
{
@@ -165,6 +166,32 @@
            }
            return record;
        }
        public RSP VerifyDomainUser(string user, string pwd)
        {
            RSP record = new RSP();
            try
            {
                DMC.DomainServiceProxy proxy = new DMC.DomainServiceProxy();
                Tuple<bool, string> r = proxy.VerifyDomainUser(user, pwd);
                if (r.Item1)
                {
                    record.Code = 200;
                    record.Message = "SUCCESS";
                }
                else
                {
                    record.Code = 500;
                    record.Message = r.Item2;
                }
            }
            catch (System.DirectoryServices.DirectoryServicesCOMException ex)
            {
                record.Code = 500;
                record.Message = ex.Message;
            }
            return record;
        }
        private void RememberUser(string UserNo, string password, bool IsCheck, UserInfo ui)
        {
            if (IsCheck)