Fix change password logic

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

No files matched your search

-1
View File
@@ -1,5 +1,4 @@
{
"lerna": "3.13.1",
"version": "independent",
"packages": ["plugins/*", "packages/*"]
}
+1 -2
View File
@@ -53,6 +53,5 @@
"prettier": "^1.16.4",
"pretty-quick": "^1.10.0",
"rimraf": "^2.6.3"
},
"dependencies": {}
}
}
+2 -1
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(
+1 -1
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",