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:
@@ -95,7 +95,7 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
model.passwordHistory = null;
|
model.passwordHistory = null;
|
||||||
} else if (model.passwordHistory != null && model.passwordHistory.length > 5) {
|
} else if (model.passwordHistory != null && model.passwordHistory.length > 5) {
|
||||||
// only save last 5 history
|
// only save last 5 history
|
||||||
model.passwordHistory = model.passwordHistory.slice(0, 4);
|
model.passwordHistory = model.passwordHistory.slice(0, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user