fix #768: password can be hidden as other fields

This commit is contained in:
antelle 2017-11-04 09:53:26 +01:00
parent 360d3ac6f6
commit ae57a5a65e
2 changed files with 4 additions and 3 deletions

View File

@ -187,8 +187,8 @@ const DetailsView = Backbone.View.extend({
fieldView.on('copy', this.fieldCopied.bind(this));
if (hideEmptyFields) {
const value = fieldView.model.value();
if (!value || value.length === 0) {
if (this.model.isJustCreated && fieldView.model.name === '$UserName') {
if (!value || value.length === 0 || value.byteLength === 0) {
if (this.model.isJustCreated && ['$UserName', '$Password'].indexOf(fieldView.model.name) >= 0) {
return; // don't hide user for new records
}
fieldView.hide();

View File

@ -6,7 +6,8 @@ Release notes
`*` prevent master password autocomplete
`*` build with node.js 8
`-` fixed tray icon click crash
`*` show usernames in in entry list
`*` show usernames in entry list
`*` password can be hidden as other fields
##### v1.5.6 (2017-08-31)
`-` fix #722: hang on start in desktop