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 faa26ab8f539d5cb19ff7382e8fd4075c2eea564
parent 1a4b1a82541094951070ec575cefb30117602e64
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Thu, 31 May 2018 15:36:51 +0200

Changed error message

Diffstat:
Msrc/api/core/organizations.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs @@ -357,7 +357,7 @@ fn send_invite(org_id: String, data: Json<InviteData>, headers: AdminHeaders, co fn confirm_invite(org_id: String, user_id: String, data: Json<Value>, headers: AdminHeaders, conn: DbConn) -> EmptyResult { let mut user_to_confirm = match UserOrganization::find_by_uuid(&user_id, &conn) { Some(user) => user, - None => err!("User to confirm doesn't exist") + None => err!("Failed to find user membership") }; if user_to_confirm.org_uuid != org_id { @@ -388,7 +388,7 @@ fn confirm_invite(org_id: String, user_id: String, data: Json<Value>, headers: A fn get_user(org_id: String, user_id: String, _headers: AdminHeaders, conn: DbConn) -> JsonResult { let user = match UserOrganization::find_by_uuid(&user_id, &conn) { Some(user) => user, - None => err!("The specified user doesn't exist") + None => err!("Failed to find user membership") }; if user.org_uuid != org_id {