浏览代码

save in localStorage password profile

everytime a user generate a password, it save the password profile on localStorage
fix https://github.com/lesspass/lesspass/issues/136
pull/342/head
Guillaume Vincent 7 年前
父节点
当前提交
7f3deb5134
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/views/PasswordGenerator.vue

+ 2
- 1
src/views/PasswordGenerator.vue 查看文件

@@ -75,7 +75,7 @@
</div>
</div>
<div class="form-group">
<master-password v-model="masterPassword" :keyupEnter="generatePassword"></master-password>
<master-password ref="masterPassword" v-model="masterPassword" :keyupEnter="generatePassword"></master-password>
</div>
<div class="form-group row justify-content-between no-gutters">
<div class="col col-auto" v-show="!generatedPassword">
@@ -350,6 +350,7 @@
return LessPass.generatePassword(site, login, masterPassword, passwordProfile).then(generatedPassword => {
this.generatingPassword = false;
this.generatedPassword = generatedPassword;
this.$store.dispatch('savePassword', {password: this.password});
window.document.getElementById('copyPasswordButton').setAttribute('data-clipboard-text', generatedPassword);
});
},


正在加载...
取消
保存