Skip to content

Commit

Permalink
chore: Set default last use date when save password hsitory
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitranquang committed Jun 3, 2024
1 parent 92e8ba6 commit c885b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locker_server/api_orm/repositories/cipher_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def update_cipher(self, cipher_id: str, cipher_data: Dict) -> Cipher:
if cipher_orm.type == CIPHER_TYPE_LOGIN and \
cipher_orm.get_data().get("password") != new_data.get("password"):
history_data = {
"last_use_date": cipher_orm.last_use_date,
"last_use_date": cipher_orm.last_use_date or now(),
"reprompt": cipher_orm.reprompt,
"score": cipher_orm.score,
"data": cipher_orm.data,
Expand Down

0 comments on commit c885b49

Please sign in to comment.