mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
fix: saved credentials not working
This commit is contained in:
parent
54e2371022
commit
ed413ee029
@ -196,11 +196,7 @@ impl Credential {
|
||||
),
|
||||
// Use the empty string as the password if auth_cookie is present
|
||||
Credential::Cached(cred) => (
|
||||
if cred.auth_cookie.is_some() {
|
||||
None
|
||||
} else {
|
||||
cred.password()
|
||||
},
|
||||
cred.password(),
|
||||
None,
|
||||
cred.auth_cookie.as_ref().map(|c| c.user_auth_cookie()),
|
||||
cred.auth_cookie.as_ref().map(|c| c.prelogon_user_auth_cookie()),
|
||||
|
@ -153,7 +153,9 @@ pub async fn retrieve_config(portal: &str, cred: &Credential, gp_params: &GpPara
|
||||
});
|
||||
|
||||
let user_auth_cookie = root.descendant_text("portal-userauthcookie").unwrap_or_default();
|
||||
let prelogon_user_auth_cookie = root.descendant_text("portal-prelogonuserauthcookie").unwrap_or_default();
|
||||
let prelogon_user_auth_cookie = root
|
||||
.descendant_text("portal-prelogonuserauthcookie")
|
||||
.unwrap_or_default();
|
||||
let config_digest = root.descendant_text("config-digest");
|
||||
|
||||
if gateways.is_empty() {
|
||||
|
Loading…
Reference in New Issue
Block a user