vaultwarden/src/db
Michael Powers 76743aee48
Fixes #635 - Unique constraint violation when using U2F tokens on PostgreSQL
Because of differences in how .on_conflict() works compared to .replace_into() the PostgreSQL backend wasn't correctly ensuring the unique constraint on user_uuid and atype wasn't getting violated.

This change simply issues a DELETE on the unique constraint prior to the insert to ensure uniqueness. PostgreSQL does not support multiple constraints in ON CONFLICT clauses.
2020-01-13 21:53:57 -05:00
..
models Fixes #635 - Unique constraint violation when using U2F tokens on PostgreSQL 2020-01-13 21:53:57 -05:00
schemas Implement change-email, email-verification, account-recovery, and welcome notifications 2019-11-24 22:28:49 -07:00
mod.rs Trying to fix issue #687 2019-11-04 14:30:24 +01:00