From 82fd80e88badbc93f953cdbcd5c686b30fe29aef Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Tue, 19 Mar 2019 15:11:39 +0100 Subject: [PATCH] generate pairing token for new secrets --- secrets.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/secrets.go b/secrets.go index e211004..64b6f44 100644 --- a/secrets.go +++ b/secrets.go @@ -27,9 +27,10 @@ type Secrets struct { func NewSecrets(pin, puk, pairingPass string) *Secrets { return &Secrets{ - pin: pin, - puk: puk, - pairingPass: pairingPass, + pin: pin, + puk: puk, + pairingPass: pairingPass, + pairingToken: generatePairingToken(pairingPass), } }