vaultwarden/src
BlackDex 7dff8c01dd JSON Response updates and small fixes
Updated several json response models.
Also fixed a few small bugs.

ciphers.rs:
  - post_ciphers_create:
    * Prevent cipher creation to organization without a collection.
  - update_cipher_from_data:
    * ~~Fixed removal of user_uuid which prevent user-owned shared-cipher to be not editable anymore when set to read-only.~~
    * Cleanup the json_data by removing the `Response` key/values from several objects.
  - delete_all:
    * Do not delete all Collections during the Purge of an Organization (same as upstream).

cipher.rs:
  - Cipher::to_json:
    * Updated json response to match upstream.
    * Return empty json object if there is no type_data instead of values which should not be set for the type_data.

organizations.rs:
  * Added two new endpoints to prevent Javascript errors regarding tax

organization.rs:
  - Organization::to_json:
    * Updated response model to match upstream
  - UserOrganization::to_json:
    * Updated response model to match upstream

collection.rs:
  - Collection::{to_json, to_json_details}:
    * Updated the json response model, and added a detailed version used during the sync
  - hide_passwords_for_user:
    * Added this function to return if the passwords should be hidden or not for the user at the specific collection (used by `to_json_details`)

Update 1: Some small changes after comments from @jjlin.
Update 2: Fixed vault purge by user to make sure the cipher is not part of an organization.

Resolves #971
Closes #990, Closes #991
2021-01-31 21:46:37 +01:00
..
api JSON Response updates and small fixes 2021-01-31 21:46:37 +01:00
db JSON Response updates and small fixes 2021-01-31 21:46:37 +01:00
static Updated the admin interface 2021-01-19 17:55:21 +01:00
auth.rs Fix collection access issues for owner/admin users 2021-01-26 22:35:09 -08:00
config.rs Updated the admin interface 2021-01-19 17:55:21 +01:00
crypto.rs Generate tokens more simply and uniformly 2020-08-22 16:07:53 -07:00
error.rs Log proper namespace in the err!() macro 2020-11-22 00:09:45 +01:00
mail.rs Clean up datetime output and code 2020-12-13 19:49:22 -08:00
main.rs Updated the admin interface 2021-01-19 17:55:21 +01:00
util.rs Clean up datetime output and code 2020-12-13 19:49:22 -08:00