From cc4590c4e212210332f82a3b0bbf0ac45f88ffb6 Mon Sep 17 00:00:00 2001 From: yoprogramo Date: Wed, 28 Jul 2021 12:44:59 +0200 Subject: [PATCH] Soundkey Fix --- lib/nomorepass.js | 2 +- www/js/nomorepass.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nomorepass.js b/lib/nomorepass.js index d38fd7b..5fb505c 100644 --- a/lib/nomorepass.js +++ b/lib/nomorepass.js @@ -257,7 +257,7 @@ exports.getQrNomoreKeys = function (site, user, pass, type, extra, callback) { if (typeof extra == 'object') { if ('extra' in extra) { if (typeof extra['extra']=='object' && 'secret' in extra['extra']) { - extra['extra']['secret']=CryptoJS.AES.encrypt(extra['extra']['secret'],tk); + extra['extra']['secret']=""+CryptoJS.AES.encrypt(extra['extra']['secret'],tk); extra['extra']['type'] = type.toLowerCase(); } else { extra['extra'] = {'type':type.toLowerCase()}; diff --git a/www/js/nomorepass.js b/www/js/nomorepass.js index ec1d40e..7d30932 100644 --- a/www/js/nomorepass.js +++ b/www/js/nomorepass.js @@ -209,7 +209,7 @@ var NomorePass = { if (typeof extra == 'object') { if ('extra' in extra) { if (typeof extra['extra']=='object' && 'secret' in extra['extra']) { - extra['extra']['secret']=CryptoJS.AES.encrypt(extra['extra']['secret'],tk); + extra['extra']['secret']=""+CryptoJS.AES.encrypt(extra['extra']['secret'],tk); extra['extra']['type'] = type.toLowerCase(); } else { extra['extra'] = {'type':type.toLowerCase()};