From 86aee5482caee095aa954659e43d3c32aa77b4a0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 24 May 2019 15:35:57 -0700 Subject: [PATCH] login works again Signed-off-by: Jeff Carr --- main.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c00508d..ee1e6a7 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,7 @@ import "runtime/debug" import "github.com/gookit/config" import "github.com/gobuffalo/packr" +import "github.com/davecgh/go-spew/spew" // will try to get this hosts FQDN import "github.com/Showmax/go-fqdn" @@ -23,8 +24,6 @@ var GITCOMMIT string // this is passed in as an ldflag var GOVERSION string // this is passed in as an ldflag var BUILDTIME string // this is passed in as an ldflag -// import "github.com/davecgh/go-spew/spew" - // reminder to use this for JSON // https://github.com/tidwall/gjson // value := gjson.Get(json, "name.last") @@ -331,12 +330,17 @@ func watchGUI() { log.Println("\tTRIGGERING CREATE HERE") event := pb.MakeAddVmEvent() - //event.Username = config.String("accounts." + gui.Data.AccNick + ".username") + event.Username = config.String("accounts." + gui.Data.AccNick + ".username") + event.Email = config.String("accounts." + gui.Data.AccNick + ".email") //event.Password = config.String("accounts." + gui.Data.AccNick + ".password") + event.Token = config.String("accounts." + gui.Data.AccNick + ".token") log.Println("\tTRIGGERING LOGIN HERE with event.Token =", event.Token) + spew.Dump(event) gorillaSendProtobuf(event) + + log.Println("\tEVENT SENT TO GORILLA WEBSOCKET") gui.Data.State = "READ PROTOBUF" } if (gui.Data.State == "kill") {