Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Changed error message
Dieser Commit ist enthalten in:
Ursprung
1a4b1a8254
Commit
faa26ab8f5
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -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 {
|
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) {
|
let mut user_to_confirm = match UserOrganization::find_by_uuid(&user_id, &conn) {
|
||||||
Some(user) => user,
|
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 {
|
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 {
|
fn get_user(org_id: String, user_id: String, _headers: AdminHeaders, conn: DbConn) -> JsonResult {
|
||||||
let user = match UserOrganization::find_by_uuid(&user_id, &conn) {
|
let user = match UserOrganization::find_by_uuid(&user_id, &conn) {
|
||||||
Some(user) => user,
|
Some(user) => user,
|
||||||
None => err!("The specified user doesn't exist")
|
None => err!("Failed to find user membership")
|
||||||
};
|
};
|
||||||
|
|
||||||
if user.org_uuid != org_id {
|
if user.org_uuid != org_id {
|
||||||
|
|
Laden …
In neuem Issue referenzieren