mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
revert to old secrets masking behaviour in browser cipher edit view (#8018)
This commit is contained in:
@@ -226,8 +226,6 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
if (!this.allowPersonal && this.organizationId == undefined) {
|
||||
this.organizationId = this.defaultOwnerId;
|
||||
}
|
||||
|
||||
this.resetMaskState();
|
||||
}
|
||||
|
||||
async load() {
|
||||
@@ -274,8 +272,6 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
this.cipher.secureNote.type = SecureNoteType.Generic;
|
||||
this.cipher.reprompt = CipherRepromptType.None;
|
||||
}
|
||||
|
||||
this.resetMaskState();
|
||||
}
|
||||
|
||||
if (this.cipher != null && (!this.editMode || loadedAddEditCipherInfo || this.cloneMode)) {
|
||||
@@ -517,12 +513,6 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
return true;
|
||||
}
|
||||
|
||||
resetMaskState() {
|
||||
// toggle masks off for maskable login properties with no value on init/load
|
||||
this.showTotpSeed = !this.cipher?.login?.totp;
|
||||
this.showPassword = !this.cipher?.login?.password;
|
||||
}
|
||||
|
||||
togglePassword() {
|
||||
this.showPassword = !this.showPassword;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user