Send ID with register and verify requests
This commit is contained in:
parent
5f435b488a
commit
7998e82017
3 changed files with 3 additions and 1 deletions
|
@ -35,6 +35,7 @@ var registerCmd = &cobra.Command{
|
|||
err := s.RawRequest(v0.LegacyRequest{
|
||||
Type: "register",
|
||||
Username: username,
|
||||
ID: requestID,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatal("error sending request: ", err)
|
||||
|
|
|
@ -40,6 +40,7 @@ var verify = &cobra.Command{
|
|||
Type: "verify",
|
||||
Username: username,
|
||||
Code: code,
|
||||
ID: requestID,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatal("error sending request: ", err)
|
||||
|
|
|
@ -59,7 +59,7 @@ func (s *Signald) Connect() error {
|
|||
return err
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue