浏览代码

fix all checkbox unchecked

It is also possible to uncheck all checkboxes, in which case the last password remains.
pull/342/head
Guillaume Vincent 8 年前
父节点
当前提交
371e39e154
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      extension/popup.js

+ 4
- 2
extension/popup.js 查看文件

@@ -115,11 +115,13 @@ document.getElementById('passwordCounter').addEventListener('input', generatePas

function generatePassword() {
const data = getFormData();
if (!data.login || !data.masterPassword || !data.site) {
const generatedPasswordField = document.getElementById('generatedPasswordField');
if (!data.login || !data.masterPassword || !data.site || !data.password.settings.length) {
generatedPasswordField.value = '';
return;
}
return lesspass.generatePassword(data.login, data.masterPassword, data.site, data).then(password => {
document.getElementById('generatedPasswordField').value = password;
generatedPasswordField.value = password;
return password;
});
}


正在加载...
取消
保存