generate pairing token for new secrets

This commit is contained in:
Andrea Franz 2019-03-19 15:11:39 +01:00
parent bae6af1f29
commit 82fd80e88b
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 4 additions and 3 deletions

View File

@ -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),
} }
} }