Skip to content

Commit

Permalink
Fixed computation of loginChangeable
Browse files Browse the repository at this point in the history
Fixes #55
  • Loading branch information
kkapsner committed Jan 29, 2022
1 parent f4fdc22 commit e2bff42
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
18 changes: 7 additions & 11 deletions experiment/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,23 +448,19 @@ function getCredentialInfo(window){
return false;
}

function loginChangeable(login){
const promptData = currentPromptData || getCredentialInfoFromStrings(window.args.title, window.args.text);
if (promptData){
const host = promptData.host;
let login = promptData.login;
let loginChangeable = false;
if (!login && promptType === "promptUserAndPass"){
const loginInput = window.document.getElementById("loginTextbox");
if (loginInput && loginInput.value){
login = loginInput.value;
return true;
}
loginChangeable = true;
}
return false;
}
const promptData = currentPromptData || getCredentialInfoFromStrings(window.args.title, window.args.text);
if (promptData){
return {
host: promptData.host,
login: promptData.login,
loginChangeable: loginChangeable(promptData.login),
};
return {host, login, loginChangeable};
}
return false;
}
Expand Down
10 changes: 1 addition & 9 deletions releaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
Version 0.1.12

new features:

-

changes:

-

fixes:

-
- password prompts without a given username did not find any password in newer Thunderbird version

Version 0.1.11

Expand Down
4 changes: 4 additions & 0 deletions versions/updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
{
"version": "0.1.11",
"update_link": "https://keepassxc-mail.kkapsner.de/versions/keepassxc-mail-0.1.11.xpi"
},
{
"version": "0.1.12",
"update_link": "https://keepassxc-mail.kkapsner.de/versions/keepassxc-mail-0.1.12.xpi"
}
]
}
Expand Down

0 comments on commit e2bff42

Please sign in to comment.