Skip to content

Commit

Permalink
Fix password manager preventing app to open when password is set
Browse files Browse the repository at this point in the history
  • Loading branch information
renandecarlo committed Oct 21, 2024
1 parent 05427ae commit 4d18d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/password-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ const passwordManager = async () => {

try {
config.password = decryptPassword(encryptedPassword, config.CRYPT_KEY);

return true;
} catch(e) {
console.err(chalk.bgRedBright('-> Não foi possível descriptografar a senha.'));

return await setPassword();
}
}

return true;
}

module.exports = passwordManager;

0 comments on commit 4d18d51

Please sign in to comment.