From 7f3deb51344e6b3a64a26f6ee48ef325042cd241 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Thu, 2 Feb 2017 17:50:50 +0100 Subject: [PATCH] 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 --- src/views/PasswordGenerator.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/PasswordGenerator.vue b/src/views/PasswordGenerator.vue index df80a12..4a7c34a 100644 --- a/src/views/PasswordGenerator.vue +++ b/src/views/PasswordGenerator.vue @@ -75,7 +75,7 @@
- +
@@ -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); }); },