Skip to content

Remove the duplicate UID check as it is not needed.#26

Open
gorrdy wants to merge 11 commits intolnbits:mainfrom
gorrdy:main
Open

Remove the duplicate UID check as it is not needed.#26
gorrdy wants to merge 11 commits intolnbits:mainfrom
gorrdy:main

Conversation

@gorrdy
Copy link
Contributor

@gorrdy gorrdy commented Oct 4, 2023

The card UID is not so important to be UNIQUE in the database. The reason I created this PR is because this is completely useless and sometimes uses delete their card (and its keys) because of this check. Then they're not able to rewrite the card because they deleted the keys. Ofc they can wipe the card and then pair it again but.. this is not the reality.

Also it (kind of) fixes #3 , orphaned cards that are not able to pair if the wallet is deleted because this cannot happen again. It would be better to fix the #3 as suggested in #3 by cascade delete of the bolt cards but this is not the main purpose of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orphaned cards, when a wallet is deleted - burning uids on the server

1 participant