diff --git a/app/templates/share.js b/app/templates/share.js index abf5d018..943866b2 100644 --- a/app/templates/share.js +++ b/app/templates/share.js @@ -12,7 +12,23 @@ function passwordComplete(state, password) { password: '
'
     })}`
   ]);
-  el.lastElementChild.textContent = password;
+  const displayPassword = [];
+  for (let i = 0; i < password.length; i++) {
+    displayPassword[i] = '●';
+  }
+
+  const passwordOriginal = document.createElement('div');
+  passwordOriginal.className = 'passwordOriginal';
+  passwordOriginal.innerText = password;
+
+  const passwordStar = document.createElement('div');
+  passwordStar.className = 'passwordStar';
+  passwordStar.innerText = displayPassword
+    .toString()
+    .split(',')
+    .join('');
+  el.lastElementChild.appendChild(passwordOriginal);
+  el.lastElementChild.appendChild(passwordStar);
   return el;
 }
 
diff --git a/app/templates/uploadPassword.js b/app/templates/uploadPassword.js
index e84ebbb7..0df27f05 100644
--- a/app/templates/uploadPassword.js
+++ b/app/templates/uploadPassword.js
@@ -5,9 +5,7 @@ module.exports = function(state, emit) {
   const div = html`
   
- +
@@ -17,6 +15,7 @@ module.exports = function(state, emit) { maxlength="64" autocomplete="off" placeholder="${state.translate('unlockInputPlaceholder')}" + type="password" oninput=${inputChanged}/>