コード例 #1
0
ファイル: UserDelivery.cs プロジェクト: ragsden/mynglz
        public UserLogin LoginPasswordValidateGet(string userName, string password)
        {
            try
            {
                UserLogin userLogin = new UserLogin()
                {
                    UserName = userName,
                    Password = password,
                    ExternalID = "0",
                    UserSourceType = SourceType.Internal
                };
                UserService userService = new UserService();
                userLogin = userService.LoginGet(userLogin);

                userLogin.Password = "";

                return userLogin;
            }
            catch (Exception e)
            {
                Logging.WriteToEventLog("USER LoginPasswordValidateCreate " + e.Message);
                return null;
            }
        }