lnbits / boltcards

Bolt Cards (NXP NTAG424) - LNbits extension
MIT License
14 stars 10 forks source link

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

Open gorrdy opened 10 months ago

gorrdy commented 10 months ago

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.