Skip to content

Commit 9511905

Browse files
committed
Fix admin invite with SSO
1 parent c9d527d commit 9511905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/core/accounts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ async fn post_set_password(data: Json<SetPasswordData>, headers: Headers, conn:
378378
}
379379

380380
if let Some(identifier) = data.org_identifier {
381-
if identifier != crate::sso::FAKE_IDENTIFIER {
381+
if identifier != crate::sso::FAKE_IDENTIFIER && identifier != crate::api::admin::FAKE_ADMIN_UUID {
382382
let org = match Organization::find_by_uuid(&identifier.into(), &conn).await {
383383
None => err!("Failed to retrieve the associated organization"),
384384
Some(org) => org,

0 commit comments

Comments
 (0)