Send ID with register and verify requests

This commit is contained in:
Finn 2020-12-12 02:55:38 -08:00
parent 5f435b488a
commit 7998e82017
3 changed files with 3 additions and 1 deletions

View file

@ -35,6 +35,7 @@ var registerCmd = &cobra.Command{
err := s.RawRequest(v0.LegacyRequest{ err := s.RawRequest(v0.LegacyRequest{
Type: "register", Type: "register",
Username: username, Username: username,
ID: requestID,
}) })
if err != nil { if err != nil {
log.Fatal("error sending request: ", err) log.Fatal("error sending request: ", err)

View file

@ -40,6 +40,7 @@ var verify = &cobra.Command{
Type: "verify", Type: "verify",
Username: username, Username: username,
Code: code, Code: code,
ID: requestID,
}) })
if err != nil { if err != nil {
log.Fatal("error sending request: ", err) log.Fatal("error sending request: ", err)

View file

@ -59,7 +59,7 @@ func (s *Signald) Connect() error {
return err return err
} }
s.socket = socket s.socket = socket
log.Println("signald-go: Connected to signald socket ", socket.RemoteAddr().String()) log.Println("signald-go: Connected to signald socket", socket.RemoteAddr().String())
return nil return nil
} }