mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 12:12:34 +02:00
Fix admin invite with SSO (#6498)
Co-authored-by: Timshel <timshel@users.noreply.github.com>
This commit is contained in:
@@ -378,7 +378,7 @@ async fn post_set_password(data: Json<SetPasswordData>, headers: Headers, conn:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(identifier) = data.org_identifier {
|
if let Some(identifier) = data.org_identifier {
|
||||||
if identifier != crate::sso::FAKE_IDENTIFIER {
|
if identifier != crate::sso::FAKE_IDENTIFIER && identifier != crate::api::admin::FAKE_ADMIN_UUID {
|
||||||
let org = match Organization::find_by_uuid(&identifier.into(), &conn).await {
|
let org = match Organization::find_by_uuid(&identifier.into(), &conn).await {
|
||||||
None => err!("Failed to retrieve the associated organization"),
|
None => err!("Failed to retrieve the associated organization"),
|
||||||
Some(org) => org,
|
Some(org) => org,
|
||||||
|
|||||||
Reference in New Issue
Block a user