mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-23 06:58:10 +02:00
Paramètres : test de connexion Qlik branché sur le module qlik
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG2LLJuswrrTTPKJmunEVf
This commit is contained in:
1 file changed
+10
-2
@@ -4,8 +4,16 @@
|
|||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
/// Ouvre une session Qlik (NTLM → ticket → cookie) avec les identifiants donnés.
|
/// Ouvre une session Qlik (NTLM → ticket → cookie) avec les identifiants donnés.
|
||||||
pub async fn tester_session(_host: String, _user: String, _password: Option<String>) -> anyhow::Result<()> {
|
pub async fn tester_session(host: String, user: String, password: Option<String>) -> anyhow::Result<()> {
|
||||||
anyhow::bail!("Test Qlik indisponible : module en cours de portage")
|
let enregistre = crate::qlik::client::get_qlik_config();
|
||||||
|
let mut cfg = enregistre.clone();
|
||||||
|
cfg.user = user;
|
||||||
|
cfg.password = password.unwrap_or(enregistre.password);
|
||||||
|
if !host.is_empty() {
|
||||||
|
cfg.host = host;
|
||||||
|
}
|
||||||
|
crate::qlik::client::qlik_ntlm_session(&cfg).await?;
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Oublie l'URL mémorisée de l'API FF Nancy.
|
/// Oublie l'URL mémorisée de l'API FF Nancy.
|
||||||
|
|||||||
Reference in new issue
Block a user