Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

refact(oidc): login with api domain (#15710)

fufesou807e05ea9a7e
diff --git a/src/hbbs_http/account.rs b/src/hbbs_http/account.rs
index 3f824113b..46f6969ee 100644
--- a/src/hbbs_http/account.rs
+++ b/src/hbbs_http/account.rs
@@ -169,6 +169,7 @@ impl OidcSession {
"id": id,
"uuid": uuid,
"deviceInfo": crate::ui_interface::get_login_device_info(),
+ "apiDomain": api_server,
})
.to_string();
let resp = crate::post_request_sync(format!("{}/api/oidc/auth", api_server), body, "")?;