1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

keep last 5, not 4

This commit is contained in:
Kyle Spearrin
2018-07-27 17:30:51 -04:00
parent dab9954887
commit 6d431f7832

View File

@@ -95,7 +95,7 @@ export class CipherService implements CipherServiceAbstraction {
model.passwordHistory = null;
} else if (model.passwordHistory != null && model.passwordHistory.length > 5) {
// only save last 5 history
model.passwordHistory = model.passwordHistory.slice(0, 4);
model.passwordHistory = model.passwordHistory.slice(0, 5);
}
}