generate pairing token for new secrets
This commit is contained in:
parent
bae6af1f29
commit
82fd80e88b
|
@ -27,9 +27,10 @@ type Secrets struct {
|
||||||
|
|
||||||
func NewSecrets(pin, puk, pairingPass string) *Secrets {
|
func NewSecrets(pin, puk, pairingPass string) *Secrets {
|
||||||
return &Secrets{
|
return &Secrets{
|
||||||
pin: pin,
|
pin: pin,
|
||||||
puk: puk,
|
puk: puk,
|
||||||
pairingPass: pairingPass,
|
pairingPass: pairingPass,
|
||||||
|
pairingToken: generatePairingToken(pairingPass),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue