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{
|
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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue