mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-22 06:45:08 -04:00
Fix change password logic
This commit is contained in:
1 parent
1ed09bf9b7
commit
a3ab2acfd4
4 files changed
+4
-5
No files matched your search
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"lerna": "3.13.1",
|
||||
"version": "independent",
|
||||
"packages": ["plugins/*", "packages/*"]
|
||||
}
|
||||
+1
-2
@@ -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