mirror of https://github.com/keeweb/keeweb.git
fix #768: password can be hidden as other fields
This commit is contained in:
parent
360d3ac6f6
commit
ae57a5a65e
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue