vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit c29bc9309af419864c4680208cac1bad66bd8ca3
parent 7112c86471514669b3f1a6fba69dac56b97687b1
Author: janost <janost@users.noreply.github.com>
Date:   Fri,  5 Oct 2018 11:38:02 +0200

Return proper error message for org reinvite

Diffstat:
Msrc/api/core/mod.rs | 1+
Msrc/api/core/organizations.rs | 5+++++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs @@ -112,6 +112,7 @@ pub fn routes() -> Vec<Route> { put_organization_user, delete_user, post_delete_user, + post_reinvite_user, post_org_import, clear_device_token, diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs @@ -592,6 +592,11 @@ fn post_delete_user(org_id: String, org_user_id: String, headers: AdminHeaders, delete_user(org_id, org_user_id, headers, conn) } +#[post("/organizations/<_org_id>/users/<_org_user_id>/reinvite")] +fn post_reinvite_user(_org_id: String, _org_user_id: String, _headers: AdminHeaders, _conn: DbConn) -> EmptyResult { + err!("This functionality is not implemented. The user needs to manually register before they can be accepted into the organization.") +} + use super::ciphers::CipherData; use super::ciphers::update_cipher_from_data;