diff options
-rw-r--r-- | provision.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/provision.js b/provision.js index 566075b..5441bce 100644 --- a/provision.js +++ b/provision.js @@ -55,9 +55,11 @@ jQuery(function($) { console.log('cert_duration: ' + cert_duration); ifLoggedIn(email, function() { navigator.id.genKeyPair(function(pubkey) { + if (typeof(pubkey) === 'string') { + pubkey = JSON.parse(pubkey); + } sign(email, pubkey, cert_duration); }); }); }); }); - |