mirror of
https://github.com/Kong/insomnia.git
synced 2026-06-16 12:00:10 -04:00
Fix change password logic
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"lerna": "3.13.1",
|
||||
"version": "independent",
|
||||
"packages": ["plugins/*", "packages/*"]
|
||||
}
|
||||
|
||||
@@ -53,6 +53,5 @@
|
||||
"prettier": "^1.16.4",
|
||||
"pretty-quick": "^1.10.0",
|
||||
"rimraf": "^2.6.3"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user