Skip to content

Commit

Permalink
fix keeping the user login after the first login (#17950)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo authored Mar 1, 2023
1 parent 56cba09 commit eb2efc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
Expand Down

0 comments on commit eb2efc1

Please sign in to comment.