1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

convert password history to ts. added clear option

This commit is contained in:
Kyle Spearrin
2017-12-05 11:56:13 -05:00
parent 9822f95938
commit 184a3db7c8
9 changed files with 93 additions and 60 deletions

View File

@@ -205,7 +205,7 @@ export default class PasswordGenerationService {
if (this.history == null || this.history.length === 0) {
return Promise.resolve([]);
}
const promises = this.history.map(async (item) => {
const encrypted = await this.cryptoService.encrypt(item.password);
return new PasswordHistory(encrypted.encryptedString, item.date);