1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

fix keeping the user login after the first login (#17950)

This commit is contained in:
Pedro Figueiredo 2023-03-01 18:20:50 +00:00 committed by GitHub
parent 56cba09749
commit eb2efc1612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2598,7 +2598,9 @@ export default class MetamaskController extends EventEmitter {
if (loginToken && loginSalt) {
const { vault } = this.keyringController.store.getState();
if (vault.salt !== loginSalt) {
const jsonVault = JSON.parse(vault);
if (jsonVault.salt !== loginSalt) {
console.warn(
'submitEncryptionKey: Stored salt and vault salt do not match',
);