Exemple #1
0
        protected bool UpdateMemeberBindName(string bindName, int userId, out string msg)
        {
            msg = string.Empty;
            string password = HiCryptographer.Md5Encrypt("123456");

            if (bindName.Length < 2)
            {
                msg = "用户名至少两个字符";
                return(false);
            }
            if (!MemberHelper.IsExistUserBindName(bindName))
            {
                return(MemberHelper.BindUserName(userId, bindName, password));
            }
            msg = "用户名重复";
            return(false);
        }