mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
view password history
This commit is contained in:
@@ -377,6 +377,18 @@
|
|||||||
<b class="font-weight-semibold">{{'datePasswordUpdated' | i18n}}:</b>
|
<b class="font-weight-semibold">{{'datePasswordUpdated' | i18n}}:</b>
|
||||||
{{passwordRevisionDate | date:'medium'}}
|
{{passwordRevisionDate | date:'medium'}}
|
||||||
</div>
|
</div>
|
||||||
|
<div *ngIf="cipher.hasPasswordHistory">
|
||||||
|
<b class="font-weight-semibold">{{'passwordHistory' | i18n}}:</b>
|
||||||
|
<a href="#" appStopClick (click)="viewHistory()" title="{{'view' | i18n}}">
|
||||||
|
{{cipher.passwordHistory.length}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="ml-3" *ngIf="viewingPasswordHistory">
|
||||||
|
<div *ngFor="let ph of cipher.passwordHistory">
|
||||||
|
{{ph.lastUsedDate | date:'short'}} -
|
||||||
|
<span class="text-monospace ml-2">{{ph.password}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
|||||||
totpSec: number;
|
totpSec: number;
|
||||||
totpLow: boolean;
|
totpLow: boolean;
|
||||||
passwordRevisionDate: Date;
|
passwordRevisionDate: Date;
|
||||||
|
viewingPasswordHistory = false;
|
||||||
|
|
||||||
protected totpInterval: number;
|
protected totpInterval: number;
|
||||||
|
|
||||||
@@ -109,6 +110,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
|||||||
this.messagingService.send('upgradeOrganization', { organizationId: this.cipher.organizationId });
|
this.messagingService.send('upgradeOrganization', { organizationId: this.cipher.organizationId });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
viewHistory() {
|
||||||
|
this.viewingPasswordHistory = !this.viewingPasswordHistory;
|
||||||
|
}
|
||||||
|
|
||||||
protected cleanUp() {
|
protected cleanUp() {
|
||||||
if (this.totpInterval) {
|
if (this.totpInterval) {
|
||||||
window.clearInterval(this.totpInterval);
|
window.clearInterval(this.totpInterval);
|
||||||
|
|||||||
@@ -2383,7 +2383,7 @@
|
|||||||
"description": "ex. Date this item was updated"
|
"description": "ex. Date this item was updated"
|
||||||
},
|
},
|
||||||
"datePasswordUpdated": {
|
"datePasswordUpdated": {
|
||||||
"message": "Password updated",
|
"message": "Password Updated",
|
||||||
"description": "ex. Date this password was updated"
|
"description": "ex. Date this password was updated"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user