Fix change password logic

This commit is contained in:
Gregory Schier
2019-08-07 11:08:25 -04:00
parent 1ed09bf9b7
commit a3ab2acfd4
4 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
{
"lerna": "3.13.1",
"version": "independent",
"packages": ["plugins/*", "packages/*"]
}

View File

@@ -53,6 +53,5 @@
"prettier": "^1.16.4",
"pretty-quick": "^1.10.0",
"rimraf": "^2.6.3"
},
"dependencies": {}
}
}

View File

@@ -131,7 +131,8 @@ export async function changePasswordWithToken(rawNewPassphrase, confirmationCode
.toString('hex');
// Re-encrypt existing keys with new secret
const newEncSymmetricKeyJSON = crypt.encryptAES(newSecret, _getSymmetricKey());
const symmetricKey = JSON.stringify(_getSymmetricKey());
const newEncSymmetricKeyJSON = crypt.encryptAES(newSecret, symmetricKey);
const newEncSymmetricKey = JSON.stringify(newEncSymmetricKeyJSON);
return fetch.post(

View File

@@ -6,7 +6,7 @@
"name": "insomnia",
"productName": "Insomnia",
"longName": "Insomnia REST Client",
"version": "6.6.0",
"version": "6.6.1",
"main": "main.min.js"
},
"licence": "MIT",