public int ResetSystemUserPassword(string loginName, string oldPassword, string newPassword, string applicationKey)
        {
            var result = AuthDA.Login(loginName, oldPassword, applicationKey);

            if (result == null)
            {
                throw new BusinessException("原密码错误!");
            }

            int    EditUserSysNo = DataContext.GetContextItemInt("UserSysNo", 0);
            string EditUserName  = DataContext.GetContextItemString("UserDisplayName");

            return(SystemUserDA.ResetSystemUserPassword(loginName, newPassword, applicationKey, EditUserSysNo, EditUserName));
        }
 public int ResetSystemUserPasswordForAuthCenter(string loginName, string newPassword, int editUserSysNo, string editUserName)
 {
     return(SystemUserDA.ResetSystemUserPassword(loginName, newPassword, string.Empty, editUserSysNo, editUserName));
 }