Skip to content

Commit

Permalink
fix: Correctly set a WebAuthN key's last used timestamp
Browse files Browse the repository at this point in the history
Fixes #48, #56
  • Loading branch information
MarkusH authored and apollo13 committed Jun 1, 2023
1 parent 80444b5 commit 88e3635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kagi/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def webauthn_verify_assertion(request):

# Update counter.
key.sign_count = sign_count
key.last_used = now()
key.last_used_at = now()
key.save()

try:
Expand Down

0 comments on commit 88e3635

Please sign in to comment.