Skip to content

Commit

Permalink
Merge branch 'develop' into 'main'
Browse files Browse the repository at this point in the history
chore: Set default last use date when save password hsitory

See merge request locker/api-core!452
  • Loading branch information
khaitranquang committed Jun 3, 2024
2 parents 6356388 + c885b49 commit fb25b23
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 fb25b23

Please sign in to comment.