Beispiel #1
0
        private SaveResult SaveCreate(Account oAccount)
        {
            oAccount.Id         = Guid.NewGuid();
            oAccount.Status     = (byte)AccountStatus.Active;
            oAccount.PIN        = "";
            oAccount.CreateTime = DateTime.Now;
            oAccount.CreateBy   = AccountInfo.Id;
            oAccount.RoleId     = null; //角色先暂定为空
            oAccount.Password   = PasswordHasher.HashPassword(oAccount.Password);

            return(_component.CreateAccount(oAccount, AccountInfo.Id, AccountInfo.Username));
        }