1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-10-24 01:54:52 +02:00
vaultwarden/src/db/models
BlackDex 18d66474e0
Fix External ID not set during DC Sync
While working on the fix I realised the location where the `external_id`
is stored was wrong. It was stored in the `users` table, but it actually
should have been stored in the `users_organizations` table.

This will move the column to the right table. It will not move the
values of the `external_id` column, because if there are more
organizations, there is no way to really know which organization it is
linked to. Setups using the Directory Connector can clear the sync
cache, and sync again, that will store all the `external_id` values at
the right location.

Also changed the function to revoke,restore an org-user and set_external_id to return a boolean.
It will state if the value has been changed or not, and if not, we can
prevent a `save` call to the database.

The `users` table is not changed to remove the `external_id` column, thi
to prevent issue when users want to revert back to an earlier version
for some reason. We can do this after a few minor release i think.

Fixes #3777
2023-10-21 13:54:48 +02:00
..
attachment.rs Add some extra access checks for attachments and groups 2023-07-03 19:58:14 +02:00
auth_request.rs Fix Login With Device without MasterPassword 2023-09-01 21:03:50 +02:00
cipher.rs feat: Support for storing passkeys in the vault 2023-06-22 18:48:13 +02:00
collection.rs fix format error 2023-07-04 20:26:03 +02:00
device.rs Implement login-with-device 2023-08-13 17:54:18 +02:00
emergency_access.rs Cleanups and Fixes for Emergency Access 2022-12-02 09:44:23 +01:00
event.rs Some Admin Interface updates 2023-02-28 20:43:22 +01:00
favorite.rs Update to diesel2 2022-10-23 00:49:23 +02:00
folder.rs Update to diesel2 2022-10-23 00:49:23 +02:00
group.rs Fix some external_id issues 2023-07-12 22:04:18 +02:00
mod.rs Implement login-with-device 2023-08-13 17:54:18 +02:00
org_policy.rs check if reset policy is enabled 2023-04-06 22:34:05 +02:00
organization.rs Fix External ID not set during DC Sync 2023-10-21 13:54:48 +02:00
send.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
two_factor.rs Update to diesel2 2022-10-23 00:49:23 +02:00
two_factor_incomplete.rs Update to diesel2 2022-10-23 00:49:23 +02:00
user.rs Fix External ID not set during DC Sync 2023-10-21 13:54:48 +02:00