Merge pull request #620 from keepassxreboot/fix/banner_updating_creds

Fix update button from Credential Banner
This commit is contained in:
Sami Vänttinen 2019-10-10 15:06:13 +03:00 committed by GitHub
commit 96b8a2abee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1573,7 +1573,7 @@ kpxc.contextMenuRememberCredentials = async function() {
* @param {Array} oldCredentials Credentials saved from the password change page, if available
*/
kpxc.rememberCredentials = async function(usernameValue, passwordValue, urlValue, oldCredentials) {
const credentials = kpxc.credentials || oldCredentials;
const credentials = (oldCredentials !== undefined && oldCredentials.length > 0) ? oldCredentials : kpxc.credentials;
// No password given or field cleaned by a site-running script
// --> no password to save