A local-first personal finance app
Obfuscate password when login the login header (#402)
rodriguestiago0b4a620e74e55
diff --git a/src/app-account.js b/src/app-account.jsindex 5969313db6..78c7524a4c 100644--- a/src/app-account.js+++ b/src/app-account.js@@ -45,7 +45,9 @@ app.post('/login', (req, res) => {switch (loginMethod) {case 'header': {let headerVal = req.get('x-actual-password') || '';- console.debug('HEADER VALUE: ' + headerVal);+ const obfuscated =+ '*'.repeat(headerVal.length) || 'No password provided.';+ console.debug('HEADER VALUE: ' + obfuscated);if (headerVal == '') {res.send({ status: 'error', reason: 'invalid-header' });return;diff --git a/upcoming-release-notes/402.md b/upcoming-release-notes/402.mdnew file mode 100644index 0000000000..8621f7f9da--- /dev/null+++ b/upcoming-release-notes/402.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [rodriguestiago0]+---++Obfuscate password when login the login header\ No newline at end of file