fix: saved credentials not working

This commit is contained in:
Kevin Yue committed 2024-10-30 16:13:20 +00:00
1 parent 54e2371022
commit 516d685c9e
2 files changed
+15 -5

No files matched your search

+1 -5
View File
@@ -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()),