Browse Source

Master Password verification images leak password

display fingerprint only when we render password
https://github.com/lesspass/lesspass/issues/48
pull/342/head
Guillaume Vincent 8 years ago
parent
commit
512d998c83
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/views/PasswordGenerator.vue

+ 4
- 1
src/views/PasswordGenerator.vue View File

@@ -87,7 +87,7 @@
autocorrect="off" autocorrect="off"
autocapitalize="none" autocapitalize="none"
v-model="masterPassword"> v-model="masterPassword">
<fingerprint :fingerprint="masterPassword" v-on:click.native="showMasterPassword"></fingerprint>
<fingerprint :fingerprint="fingerprint" v-on:click.native="showMasterPassword"></fingerprint>
</div> </div>
</div> </div>
</div> </div>
@@ -204,6 +204,7 @@
return { return {
masterPassword: '', masterPassword: '',
encryptedLogin: '', encryptedLogin: '',
fingerprint: '',
generatedPassword: '', generatedPassword: '',
cleanTimeout: null cleanTimeout: null
} }
@@ -281,6 +282,7 @@
this.masterPassword = ''; this.masterPassword = '';
this.encryptedLogin = ''; this.encryptedLogin = '';
this.generatedPassword = ''; this.generatedPassword = '';
this.fingerprint = '';
}, 1000 * seconds); }, 1000 * seconds);
}, },
renderPassword(){ renderPassword(){
@@ -288,6 +290,7 @@
this.generatedPassword = ''; this.generatedPassword = '';
return; return;
} }
this.fingerprint = this.masterPassword;
const password = new Password(this.password); const password = new Password(this.password);
LessPass.renderPassword(this.encryptedLogin, this.password.site, password.options) LessPass.renderPassword(this.encryptedLogin, this.password.site, password.options)
.then(generatedPassword => { .then(generatedPassword => {


Loading…
Cancel
Save