add "check Validate" support

This commit is contained in:
Tnze
2019-08-09 00:36:00 +08:00
parent bf46650ffc
commit 8d9d2a7695
6 changed files with 159 additions and 79 deletions

View File

@ -7,12 +7,12 @@ import (
)
func TestEncodingPayload(t *testing.T) {
j, err := json.Marshal(AuthPayload{
Agent: Agent{
j, err := json.Marshal(authPayload{
Agent: agent{
Name: "Minecraft",
Version: 1,
},
UserName: "mojang account name",
UserName: "mojang account email or name",
Password: "mojang account password",
ClientToken: "client identifier",
RequestUser: true,