Skip to content

Commit

Permalink
chore: Update limit password history
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitranquang committed Jul 1, 2024
1 parent f817e7e commit 963ab06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locker_server/api_orm/model_parsers/cipher_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def parse_password_history(cls, cipher_orm: CipherORM, limit_history: int = None
"password": data.get("password")
})
if limit_history is not None:
history = history[-limit_history:]
history = history[:limit_history]
# history = history[-limit_history:]
return history

@classmethod
Expand Down

0 comments on commit 963ab06

Please sign in to comment.